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

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

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

Instances.readInstance介绍

[英]Reads a single instance from the reader and appends it to the dataset. Automatically expands the dataset if it is not large enough to hold the instance. This method does not check for carriage return at the end of the line.
[中]从读取器读取单个实例并将其附加到数据集。如果数据集不够大,无法容纳实例,则自动展开数据集。此方法不检查行尾的回车。

代码示例

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

@SuppressWarnings("deprecation")
@Override
public boolean readInstance(Reader reader) throws IOException {
 return super.readInstance(reader);
}

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

InstanceEvent.FORMAT_AVAILABLE);
notifyInstanceProduced(ie);
while (m_OutputInstances.readInstance(input)) {
 if (m_LoaderThread != this) {
  return;

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

InstanceEvent.FORMAT_AVAILABLE);
notifyInstanceProduced(ie);
while (m_OutputInstances.readInstance(input)) {
 if (m_LoaderThread != this) {
  return;

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

instances.setClassIndex(instances.numAttributes() - 1);
i = 0;
while ((i < 5) && (instances.readInstance(reader))) {
 i++;

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

instances.setClassIndex(instances.numAttributes() - 1);
i = 0;
while ((i < 5) && (instances.readInstance(reader))) {
 i++;

相关文章

Instances类方法