weka.filters.Filter.push()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(153)

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

Filter.push介绍

[英]Adds an output instance to the queue. The derived class should use this method for each output instance it makes available. Note that the instance is only copied before it is added to the output queue if it has a reference to a dataset.
[中]将输出实例添加到队列中。派生类应该为其提供的每个输出实例使用此方法。请注意,如果实例具有对数据集的引用,则仅在将其添加到输出队列之前复制该实例。

代码示例

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

/**
 * Adds an output instance to the queue. The derived class should use this
 * method for each output instance it makes available. Note that the instance
 * is only copied before it is added to the output queue if it has a reference
 * to a dataset.
 *
 * @param instance the instance to be added to the queue.
 */
protected void push(Instance instance) {
 push(instance, true);
}

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

/**
 * Adds an output instance to the queue. The derived class should use this
 * method for each output instance it makes available. Note that the instance
 * is only copied before it is added to the output queue if it has a reference
 * to a dataset.
 *
 * @param instance the instance to be added to the queue.
 */
protected void push(Instance instance) {
 push(instance, true);
}

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

/**
 * Adds an output instance to the queue. The derived class should use this
 * method for each output instance it makes available.
 * 
 * @param instance the instance to be added to the queue.
 */
@Override
protected void push(Instance instance) {
 if (instance != null) {
  super.push(instance);
  // set correct references
 }
}

相关文章