jsat.regression
Class BaseUpdateableRegressor
- java.lang.Object
-
- jsat.regression.BaseUpdateableRegressor
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Regressor, UpdateableRegressor
public abstract class BaseUpdateableRegressor extends java.lang.Object implements UpdateableRegressor
A base implementation of the UpdateableRegressor.#train(jsat.regression.RegressionDataSet, java.util.concurrent.ExecutorService)will simply calltrain(jsat.regression.RegressionDataSet), which will callUpdateableRegressor.setUp(jsat.classifiers.CategoricalData[], int)and then callUpdateableRegressor.update(jsat.classifiers.DataPoint, double)for each data point in a random order.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description BaseUpdateableRegressor()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract UpdateableRegressorclone()intgetEpochs()Returns the number of epochs used for trainingvoidsetEpochs(int epochs)Sets the number of whole iterations through the training set that will be performed for trainingvoidtrain(RegressionDataSet dataSet)voidtrain(RegressionDataSet dataSet, boolean parallel)static voidtrainEpochs(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.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jsat.regression.UpdateableRegressor
setUp, update
-
Methods inherited from interface jsat.regression.Regressor
regress, supportsWeightedData
-
-
-
-
Method Detail
-
setEpochs
public void setEpochs(int epochs)
Sets the number of whole iterations through the training set that will be performed for training- Parameters:
epochs- the number of whole iterations through the data set
-
getEpochs
public int getEpochs()
Returns the number of epochs used for training- Returns:
- the number of epochs used for training
-
train
public void train(RegressionDataSet dataSet, boolean parallel)
-
train
public void train(RegressionDataSet dataSet)
-
trainEpochs
public 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.- Parameters:
dataSet- the data set to train fromtoTrain- the classifier to trainepochs- the number of passes through the data set
-
clone
public abstract UpdateableRegressor clone()
- Specified by:
clonein interfaceRegressor- Specified by:
clonein interfaceUpdateableRegressor- Overrides:
clonein classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG