public abstract class BaseUpdateableRegressor extends Object implements UpdateableRegressor
train(jsat.regression.RegressionDataSet, java.util.concurrent.ExecutorService)
will simply call
train(jsat.regression.RegressionDataSet)
, which will call
UpdateableRegressor.setUp(jsat.classifiers.CategoricalData[], int)
and then call
UpdateableRegressor.update(jsat.classifiers.DataPoint, double)
for each data point in
a random order.Constructor and Description |
---|
BaseUpdateableRegressor() |
Modifier and Type | Method and Description |
---|---|
abstract UpdateableRegressor |
clone() |
int |
getEpochs()
Returns the number of epochs used for training
|
void |
setEpochs(int epochs)
Sets the number of whole iterations through the training set that will be
performed for training
|
void |
train(RegressionDataSet dataSet) |
void |
train(RegressionDataSet dataSet,
ExecutorService threadPool) |
static void |
trainEpochs(RegressionDataSet dataSet,
UpdateableRegressor toTrain,
int epochs)
Performs training on an updateable classifier by going over the whole
data set in random order one observation at a time, multiple times.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setUp, update
regress, supportsWeightedData
public void setEpochs(int epochs)
epochs
- the number of whole iterations through the data setpublic int getEpochs()
public void train(RegressionDataSet dataSet, ExecutorService threadPool)
public void train(RegressionDataSet dataSet)
public static void trainEpochs(RegressionDataSet dataSet, UpdateableRegressor toTrain, int epochs)
dataSet
- the data set to train fromtoTrain
- the classifier to trainepochs
- the number of passes through the data setpublic abstract UpdateableRegressor clone()
Copyright © 2017. All rights reserved.