public interface Classifier extends Cloneable, Serializable
Modifier and Type | Method and Description |
---|---|
CategoricalResults |
classify(DataPoint data)
Performs classification on the given data point.
|
Classifier |
clone() |
boolean |
supportsWeightedData()
Indicates whether the model knows how to train using weighted data points.
|
void |
trainC(ClassificationDataSet dataSet)
Trains the classifier and constructs a model for classification using the
given data set.
|
void |
trainC(ClassificationDataSet dataSet,
ExecutorService threadPool)
Trains the classifier and constructs a model for classification using the
given data set.
|
CategoricalResults classify(DataPoint data)
data
- the data point to classifyUntrainedModelException
- if the method is called before the model has been trainedModelMismatchException
- if the given data point is incompatible with the modelvoid trainC(ClassificationDataSet dataSet, ExecutorService threadPool)
dataSet
- the data set to train onthreadPool
- the source of threads to use.FailedToFitException
- if the model is unable to be constructed for some reasonvoid trainC(ClassificationDataSet dataSet)
dataSet
- the data set to train onFailedToFitException
- if the model is unable to be constructed for some reasonboolean supportsWeightedData()
Classifier clone()
Copyright © 2017. All rights reserved.