Package org.data2semantics.exp.old.utils.datasets

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

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.