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

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

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

Instances.copyInstances介绍

[英]Copies instances from one set to the end of another one.
[中]将实例从一个集合复制到另一个集合的末尾。

代码示例

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

@Override
protected void copyInstances(int arg0, Instances arg1, int arg2) {
 super.copyInstances(arg0, arg1, arg2);
}

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

/**
 * Creates a new set of instances by copying a subset of another set.
 * 
 * @param source the set of instances from which a subset is to be created
 * @param first the index of the first instance to be copied
 * @param toCopy the number of instances to be copied
 * @throws IllegalArgumentException if first and toCopy are out of range
 */
// @ requires 0 <= first;
// @ requires 0 <= toCopy;
// @ requires first + toCopy <= source.numInstances();
public Instances(/* @non_null@ */Instances source, int first, int toCopy) {
 this(source, toCopy);
 if ((first < 0) || ((first + toCopy) > source.numInstances())) {
  throw new IllegalArgumentException("Parameters first and/or toCopy out "
   + "of range");
 }
 source.copyInstances(first, this, toCopy);
}

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

/**
 * Creates a new set of instances by copying a subset of another set.
 * 
 * @param source the set of instances from which a subset is to be created
 * @param first the index of the first instance to be copied
 * @param toCopy the number of instances to be copied
 * @throws IllegalArgumentException if first and toCopy are out of range
 */
// @ requires 0 <= first;
// @ requires 0 <= toCopy;
// @ requires first + toCopy <= source.numInstances();
public Instances(/* @non_null@ */Instances source, int first, int toCopy) {
 this(source, toCopy);
 if ((first < 0) || ((first + toCopy) > source.numInstances())) {
  throw new IllegalArgumentException("Parameters first and/or toCopy out "
   + "of range");
 }
 source.copyInstances(first, this, toCopy);
}

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

/**
 * Constructor copying all instances and references to the header information
 * from the given set of instances.
 * 
 * @param dataset the set to be copied
 */
public Instances(/* @non_null@ */Instances dataset) {
 this(dataset, dataset.numInstances());
 dataset.copyInstances(0, this, dataset.numInstances());
}

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

/**
 * Constructor copying all instances and references to the header information
 * from the given set of instances.
 * 
 * @param dataset the set to be copied
 */
public Instances(/* @non_null@ */Instances dataset) {
 this(dataset, dataset.numInstances());
 dataset.copyInstances(0, this, dataset.numInstances());
}

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

copyInstances(0, train, first);
copyInstances(first + numInstForFold, train, numInstances() - first
 - numInstForFold);

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

copyInstances(0, train, first);
copyInstances(first + numInstForFold, train, numInstances() - first
 - numInstForFold);

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

copyInstances(first, test, numInstForFold);
return test;

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

copyInstances(first, test, numInstForFold);
return test;

相关文章

Instances类方法