Main Content

Incremental Learning

Fit linear model for regression to streaming data and track its performance

Incremental learning, or online learning, involves processing incoming data from a data stream, possibly given little to no knowledge of the distribution of the predictor variables, aspects of the objective function, and whether the observations are labeled. Incremental learning problems contrast with traditional machine learning methods, in which enough labeled data is available to fit to a model, perform cross-validation to tune hyperparameters, and infer the predictor distribution characteristics.

Incremental learning requires a configured incremental model. You can create and configure an incremental model directly by calling an object, for example incrementalRegressionLinear, or you can convert a supported traditionally trained model to an incremental learner by using incrementalLearner. After configuring a model and setting up a data stream, you can fit the incremental model to the incoming chunks of data, track the predictive performance of the model, or perform both actions simultaneously.

For more details, see Incremental Learning Overview.

You can also incrementally monitor for drift in concept data, such as regression loss. First you need to configure the drift detector using incrementalConceptDriftDetector. After setting up a data stream, you can update the drift detector and check for any drift using detectdrift. For more information, see the reference pages.

Functions

expand all

Create Incremental Drift-Aware Model

incrementalDriftAwareLearnerConstruct drift-aware model for incremental learning

Incrementally Fit and Track Performance

fitTrain drift-aware learner for incremental learning with new data
updateMetricsUpdate performance metrics in incremental drift-aware learning model given new data
updateMetricsAndFitUpdate performance metrics in incremental drift-aware learning model given new data and train model

Other Model Operations

lossRegression or classification error of incremental drift-aware learner
perObservationLossPer observation regression or classification error of incremental drift-aware learner
predictPredict responses for new observations from incremental drift-aware learning model
resetReset incremental drift-aware learner

Create Incremental Model

incrementalRegressionKernelKernel regression model for incremental learning
incrementalLearnerConvert kernel regression model to incremental learner

Incrementally Fit and Track Performance

fitTrain kernel model for incremental learning
updateMetricsUpdate performance metrics in kernel incremental learning model given new data
updateMetricsAndFitUpdate performance metrics in kernel incremental learning model given new data and train model

Other Model Operations

predictPredict responses for new observations from kernel incremental learning model
lossLoss of kernel incremental learning model on batch of data
perObservationLossPer observation regression error of model for incremental learning
resetReset incremental regression model

Create Incremental Model

incrementalRegressionLinearLinear regression model for incremental learning
incrementalLearnerConvert support vector machine (SVM) regression model to incremental learner
incrementalLearnerConvert linear regression model to incremental learner

Incrementally Fit and Track Performance

fitTrain linear model for incremental learning
updateMetricsUpdate performance metrics in linear incremental learning model given new data
updateMetricsAndFitUpdate performance metrics in linear incremental learning model given new data and train model

Other Model Operations

predictPredict responses for new observations from linear incremental learning model
lossLoss of linear incremental learning model on batch of data
perObservationLossPer observation regression error of model for incremental learning
resetReset incremental regression model

Create Concept Drift Detector

incrementalConceptDriftDetectorInstantiate incremental concept drift detector

Detect Drift and Reset Model

detectdriftUpdate drift detector states and drift status with new data
resetReset incremental concept drift detector

Objects

expand all

DriftDetectionMethodIncremental drift detector that utilizes Drift Detection Method (DDM)
HoeffdingDriftDetectionMethodIncremental concept drift detector that utilizes Hoeffding's Bounds Drift Detection Method (HDDM)

Topics