Examples of shuffle()


Examples of org.data2semantics.exp.old.utils.datasets.PropertyPredictionDataSet.shuffle()

        dataSet.shuffle(seeds[i]);
        target = LibSVM.createTargets(dataSet.getLabels());
      } else {
        PropertyPredictionDataSet subset = dataSet.getSubSet(maxClassSize, seeds[i]);
        // shuffle the subset, since the creation of the subset might result in a too ordered dataset
        subset.shuffle(seeds[i]);
        matrix = kernel.compute(subset.getGraphs());
        target = LibSVM.createTargets(subset.getLabels());
      }     
       
      LibSVMParameters params = new LibSVMParameters(LibSVMParameters.C_SVC, cs);
View Full Code Here

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

    System.out.println("Starting on ensemble bag: " + i);
  // Create a new bag of the appropriate size
  ModelBag modelBag = new ModelBag(predictions, getModelRatio(),
      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,
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.