public interface UpdateableClassifier extends Classifier
update(jsat.classifiers.DataPoint, int)
method.
Classifier.trainC(jsat.classifiers.ClassificationDataSet)
to first train
the classifier, or setUp(jsat.classifiers.CategoricalData[], int,
jsat.classifiers.CategoricalData)
to prepare for online updates. Once one
of these is called, it should then be safe to call
update(jsat.classifiers.DataPoint, int)
without getting a
UntrainedModelException
. Some online learners may require one of the
train methods to be called first.Modifier and Type | Method and Description |
---|---|
UpdateableClassifier |
clone() |
void |
setUp(CategoricalData[] categoricalAttributes,
int numericAttributes,
CategoricalData predicting)
Prepares the classifier to begin learning from its
update(jsat.classifiers.DataPoint, int) method. |
void |
update(DataPoint dataPoint,
int targetClass)
Updates the classifier by giving it a new data point to learn from.
|
classify, supportsWeightedData, trainC, trainC
void setUp(CategoricalData[] categoricalAttributes, int numericAttributes, CategoricalData predicting)
update(jsat.classifiers.DataPoint, int)
method.categoricalAttributes
- an array containing the categorical
attributes that will be in each data pointnumericAttributes
- the number of numeric attributes that will be in
each data pointpredicting
- the information for the target class that will be
predictedvoid update(DataPoint dataPoint, int targetClass)
dataPoint
- the data point to learntargetClass
- the target class of the data pointUpdateableClassifier clone()
clone
in interface Classifier
Copyright © 2017. All rights reserved.