Examples of sortInitialize()


Examples of weka.classifiers.meta.ensembleSelection.ModelBag.sortInitialize()

    } else if (m_algorithm == ALGORITHM_BEST) {
      // If we want to choose the best model, just make a model bag that
      // includes all the models, then sort initialize to find the 1 that
      // performs best.
      ModelBag model_bag = new ModelBag(predictions, 1.0, m_Debug);
      int[] modelPicked = model_bag.sortInitialize(1, false, data,
    m_hillclimbMetric);
      // Then give it a weight of 1, while all others remain 0.
      modelWeights[modelPicked[0]] = 1;
    } else {
     
View Full Code Here

Examples of weka.classifiers.meta.ensembleSelection.ModelBag.sortInitialize()

      m_Debug);
  // And shuffle it.
  modelBag.shuffle(rand);
  if (getSortInitializationRatio() > 0.0) {
    // Sort initialize, if the ratio greater than 0.
    modelBag.sortInitialize((int) (getSortInitializationRatio()
        * getModelRatio() * numModels),
        getGreedySortInitialization(), data,
        m_hillclimbMetric);
  }
 
View Full Code Here

Examples of weka.classifiers.meta.ensembleSelection.ModelBag.sortInitialize()

    if (m_verboseOutput) {
      // Output every model and its performance with respect to the
      // validation
      // data.
      ModelBag bag = new ModelBag(predictions, 1.0, m_Debug);
      int modelIndexes[] = bag.sortInitialize(modelNamesArray.length,
    false, data, m_hillclimbMetric);
      double modelPerformance[] = bag.getIndividualPerformance(data,
    m_hillclimbMetric);
      for (int i = 0; i < modelIndexes.length; ++i) {
  // TODO - Could do this in a more readable way.
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.