Examples of lastInstance()


Examples of weka.core.Instances.lastInstance()

                                                    newTrain.numInstances());
      newTrainTransformed.setClassIndex(newTrain.classIndex());
      for (int i = 0; i < newTrain.numInstances(); i++) {
        Instance inst = newTrain.instance(i);
        newTrainTransformed.add(inst);
        newTrainTransformed.lastInstance().
          setClassValue(oldIndexToNewIndex[(int)inst.classValue()]);
      }
      newTrain = newTrainTransformed;
    }
    m_DiscretizedHeader = new Instances(newTrain, 0);
View Full Code Here

Examples of weka.core.Instances.lastInstance()

      throw new Exception("Examples cannot be generated one by one.");

    // generate values for all attributes
    format = generateExamples(1, random, format);

    return format.lastInstance();
  }

  /**
   * Generate all examples of the dataset.
   * @return the instance generated
View Full Code Here

Examples of weka.core.Instances.lastInstance()

      throw new Exception("Examples cannot be generated one by one.");

    // generate values for all attributes
    format = generateExamples(1, random, format);

    return format.lastInstance();
  }

  /**
   * Generate all examples of the dataset.
   * @return the instance generated
View Full Code Here

Examples of weka.core.Instances.lastInstance()

                                                    newTrain.numInstances());
      newTrainTransformed.setClassIndex(newTrain.classIndex());
      for (int i = 0; i < newTrain.numInstances(); i++) {
        Instance inst = newTrain.instance(i);
        newTrainTransformed.add(inst);
        newTrainTransformed.lastInstance().
          setClassValue(oldIndexToNewIndex[(int)inst.classValue()]);
      }
      newTrain = newTrainTransformed;
    }
View Full Code Here

Examples of weka.core.Instances.lastInstance()

      throw new Exception("Examples cannot be generated one by one.");

    // generate values for all attributes
    format = generateExamples(1, random, format);

    return format.lastInstance();
  }

  /**
   * Generate all examples of the dataset.
   * @return the instance generated
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.