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 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.