public abstract class Classifier extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Classifier.Algorithm |
static class |
Classifier.Parameters |
public Classifier.Parameters getParameters()
public final LabelledVector predict(boolean withProbabilities, Vector vector)
public final List<LabelledVector> predict(boolean withProbabilities, Iterable<? extends Vector> vectors)
public final void writeTo(Path path) throws IOException
IOExceptionpublic static Classifier readFrom(Path path) throws IOException
IOExceptionpublic static Classifier train(Classifier.Parameters parameters, Iterable<LabelledVector> trainingSet) throws IOException
IOExceptionpublic static Classifier train(Iterable<Classifier.Parameters> parametersGrid, Iterable<LabelledVector> trainingSet, Comparator<ConfusionMatrix> comparator, int maxVectors) throws IOException
IOExceptionpublic static ConfusionMatrix crossValidate(Classifier.Parameters parameters, Iterable<LabelledVector> trainingSet, int numPartitions) throws IOException
IOExceptionpublic static ConfusionMatrix crossValidate(Classifier.Parameters parameters, Iterable<LabelledVector> trainingSet, int numPartitions, @Nullable Map<String,Integer> results) throws IOException
IOExceptionpublic static ConfusionMatrix crossValidate(Classifier.Parameters parameters, Iterable<LabelledVector> trainingSet, int numPartitions, int maxVectors) throws IOException
IOExceptionpublic static ConfusionMatrix crossValidate(Classifier.Parameters parameters, Iterable<LabelledVector> trainingSet, int numPartitions, @Nullable Map<String,Integer> results, int maxVectors) throws IOException
IOExceptionpublic static ConfusionMatrix crossValidate(Classifier.Parameters parameters, Iterable<? extends Iterable<LabelledVector>> partitions) throws IOException
IOExceptionpublic static ConfusionMatrix crossValidate(Classifier.Parameters parameters, Iterable<? extends Iterable<LabelledVector>> partitions, @Nullable Map<String,Integer> results) throws IOException
IOExceptionCopyright © 2016–2018 FBK. All rights reserved.