weka.core.Instances.instancesAndWeights()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(101)

本文整理了Java中weka.core.Instances.instancesAndWeights()方法的一些代码示例,展示了Instances.instancesAndWeights()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Instances.instancesAndWeights()方法的具体详情如下:
包路径:weka.core.Instances
类名称:Instances
方法名:instancesAndWeights

Instances.instancesAndWeights介绍

[英]Returns string including all instances, their weights and their indices in the original dataset.
[中]返回字符串,包括原始数据集中的所有实例、它们的权重和索引。

代码示例

代码示例来源:origin: com.googlecode.obvious/obviousx-weka

@Override
protected String instancesAndWeights() {
 return super.instancesAndWeights();
}

代码示例来源:origin: Waikato/weka-trunk

System.out.println(instances.instancesAndWeights());
System.out.print("\nSum of weights: ");
System.out.println(instances.sumOfWeights());
System.out.println(secondInstances.instancesAndWeights());
System.out.print("\nSum of weights: ");
System.out.println(secondInstances.sumOfWeights());
 System.out.println(train.instancesAndWeights());
 System.out.print("\nSum of weights: ");
 System.out.println(train.sumOfWeights());
 System.out.println("\nTest: ");
 System.out.println("\nInstances and their weights:\n");
 System.out.println(test.instancesAndWeights());
 System.out.print("\nSum of weights: ");
 System.out.println(test.sumOfWeights());
System.out.println(instances.instancesAndWeights());
System.out.print("\nSum of weights: ");
System.out.println(instances.sumOfWeights());
System.out.println(instances.instancesAndWeights());
System.out.print("\nSum of weights: ");
System.out.println(instances.sumOfWeights());

代码示例来源:origin: nz.ac.waikato.cms.weka/weka-stable

System.out.println(instances.instancesAndWeights());
System.out.print("\nSum of weights: ");
System.out.println(instances.sumOfWeights());
System.out.println(secondInstances.instancesAndWeights());
System.out.print("\nSum of weights: ");
System.out.println(secondInstances.sumOfWeights());
 System.out.println(train.instancesAndWeights());
 System.out.print("\nSum of weights: ");
 System.out.println(train.sumOfWeights());
 System.out.println("\nTest: ");
 System.out.println("\nInstances and their weights:\n");
 System.out.println(test.instancesAndWeights());
 System.out.print("\nSum of weights: ");
 System.out.println(test.sumOfWeights());
System.out.println(instances.instancesAndWeights());
System.out.print("\nSum of weights: ");
System.out.println(instances.sumOfWeights());
System.out.println(instances.instancesAndWeights());
System.out.print("\nSum of weights: ");
System.out.println(instances.sumOfWeights());

相关文章

Instances类方法