Catalano.MachineLearning
Class BenchmarkClassifier
- java.lang.Object
-
- Catalano.MachineLearning.BenchmarkClassifier
-
public class BenchmarkClassifier extends java.lang.ObjectBenchmark classifier.
-
-
Constructor Summary
Constructors Constructor and Description BenchmarkClassifier(DatasetClassification dataset)Initializes a new instance of the BenchmarkClassifier class.BenchmarkClassifier(double[][] input, int[] output)Initializes a new instance of the BenchmarkClassifier class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidCompute(java.util.List<IClassifier> classifiers, IValidation validation)Run the benchmark.IClassifiergetBestClassifier()Get the interface of the best classifier.double[]getRank()Get the rank of classifiers from the validation method.
-
-
-
Constructor Detail
-
BenchmarkClassifier
public BenchmarkClassifier(DatasetClassification dataset)
Initializes a new instance of the BenchmarkClassifier class.- Parameters:
dataset- Dataset.
-
BenchmarkClassifier
public BenchmarkClassifier(double[][] input, int[] output)Initializes a new instance of the BenchmarkClassifier class.- Parameters:
input- Data train.output- Data output.
-
-
Method Detail
-
getBestClassifier
public IClassifier getBestClassifier()
Get the interface of the best classifier.- Returns:
- Classifier.
-
getRank
public double[] getRank()
Get the rank of classifiers from the validation method.- Returns:
- Rank of classifiers.
-
Compute
public void Compute(java.util.List<IClassifier> classifiers, IValidation validation)
Run the benchmark.- Parameters:
classifiers- List of classifiers.validation- Validation method.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG