Package smile.regression
Interface OnlineRegression<T>
-
- Type Parameters:
T
- the type of input object
- All Superinterfaces:
Regression<T>
,java.io.Serializable
- All Known Implementing Classes:
NeuralNetwork
public interface OnlineRegression<T> extends Regression<T>
Regression model with online learning capability. Online learning is a model of induction that learns one instance at a time. More formally, an online algorithm proceeds in a sequence of trials.- Author:
- Haifeng Li
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
learn(T x, double y)
Online update the regression model with a new training instance.-
Methods inherited from interface smile.regression.Regression
predict, predict
-
-
-
-
Method Detail
-
learn
void learn(T x, double y)
Online update the regression model with a new training instance. In general, this method may be NOT multi-thread safe.- Parameters:
x
- training instance.y
- response variable.
-
-