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