public interface OnlineLearner extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Prepares the classifier for classification and deallocates any temporary data structures.
|
void |
train(int actual,
Vector instance)
Updates the model using a particular target variable value and a feature vector.
|
void |
train(long trackingKey,
int actual,
Vector instance)
Updates the model using a particular target variable value and a feature vector.
|
void |
train(long trackingKey,
String groupKey,
int actual,
Vector instance)
Updates the model using a particular target variable value and a feature vector.
|
void train(int actual,
Vector instance)
actual - The value of the target variable. This value should be in the half-open
interval [0..n) where n is the number of target categories.instance - The feature vector for this example.void train(long trackingKey,
String groupKey,
int actual,
Vector instance)
trackingKey - The tracking key for this training example.groupKey - An optional value that allows examples to be grouped in the computation of
the update to the model.actual - The value of the target variable. This value should be in the half-open
interval [0..n) where n is the number of target categories.instance - The feature vector for this example.void train(long trackingKey,
int actual,
Vector instance)
trackingKey - The tracking key for this training example.actual - The value of the target variable. This value should be in the half-open
interval [0..n) where n is the number of target categories.instance - The feature vector for this example.void close()
close in interface AutoCloseableclose in interface CloseableCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.