T - the type of input object.public abstract class ClassifierTrainer<T>
extends java.lang.Object
| Constructor and Description |
|---|
ClassifierTrainer()
Constructor.
|
ClassifierTrainer(smile.data.Attribute[] attributes)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setAttributes(smile.data.Attribute[] attributes)
Sets feature attributes.
|
abstract Classifier<T> |
train(T[] x,
int[] y)
Learns a classifier with given training data.
|
public ClassifierTrainer()
public ClassifierTrainer(smile.data.Attribute[] attributes)
attributes - the attributes of independent variable.public void setAttributes(smile.data.Attribute[] attributes)
attributes - the feature attributes.public abstract Classifier<T> train(T[] x, int[] y)
x - the training instances.y - the training labels.