T
- public interface Classifier<T>
extends java.lang.Cloneable
Modifier and Type | Method and Description |
---|---|
Classifier<T> |
copy()
Creates and returns a copy of this object.
|
void |
train(java.util.List<TrainingSample<T>> l)
Replace the current training list and train the classifier
|
void |
train(TrainingSample<T> t)
Add a single example to the current training set and train the classifier
|
double |
valueOf(T e)
Computes the category of the provided example
|
void train(TrainingSample<T> t)
t
- the training samplevoid train(java.util.List<TrainingSample<T>> l)
l
- list of training samplesdouble valueOf(T e)
e
- exampleClassifier<T> copy() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
Object.clone()