public interface UpdateableRegressor extends Regressor
update(jsat.classifiers.DataPoint, double)
method.
Regressor.train(jsat.regression.RegressionDataSet)
to first train
the classifier, or setUp(jsat.classifiers.CategoricalData[], int)
to prepare for online updates. Once one
of these is called, it should then be safe to call
update(jsat.classifiers.DataPoint, double)
without getting a
FailedToFitException
. Some online learners may require one of the
train methods to be called first.Modifier and Type | Method and Description |
---|---|
UpdateableRegressor |
clone() |
void |
setUp(CategoricalData[] categoricalAttributes,
int numericAttributes)
Prepares the classifier to begin learning from its
update(jsat.classifiers.DataPoint, double) method. |
void |
update(DataPoint dataPoint,
double targetValue)
Updates the classifier by giving it a new data point to learn from.
|
regress, supportsWeightedData, train, train
void setUp(CategoricalData[] categoricalAttributes, int numericAttributes)
update(jsat.classifiers.DataPoint, double)
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 pointvoid update(DataPoint dataPoint, double targetValue)
dataPoint
- the data point to learntargetValue
- the target value of the data pointUpdateableRegressor clone()
Copyright © 2017. All rights reserved.