Incremental Learning

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

Incremental learning, or online learning, is concerned with 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, or even whether the observations are labeled. The 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 using 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 its predictive performance, or perform both actions simultaneously.

For more details, see Incremental Learning Overview

Functions

expand all

incrementalLearnerConvert support vector machine (SVM) regression model to incremental learner
incrementalLearnerConvert linear regression model to incremental learner
fitTrain incremental learning model
updateMetricsUpdate incremental learning model performance metrics on new data
updateMetricsAndFitUpdate incremental learning model performance metrics on new data, then train model
predictPredict responses for new observations from incremental learning model
lossLoss of incremental learning model on batch of data

Objects

incrementalRegressionLinearLinear regression model for incremental learning

Topics

Incremental Learning Overview

Incremental learning, or online learning, is a branch of machine learning concerned with processing incoming data from a data stream — continuously and in real time — possibly given little to no knowledge of the distribution of the predictor variables, the sample size, aspects of the prediction or objective function (including adequate tuning parameter values), or whether the observations have labeled.

Configure Incremental Learning Model

Prepare incremental learning model for incremental performance evaluation and training on data stream.

Implement Incremental Learning Using Succinct Workflow

This example shows how to use the succinct workflow to implement incremental learning for linear regression with prequential evaluation.

Implement Incremental Learning Using Flexible Workflow

This example shows how to use the flexible workflow to implement incremental learning for linear regression with prequential evaluation.

Initialize Incremental Learning Model from SVM Regression Model Trained in Regression Learner

Train a linear SVM regression model using Regression Learner, then initialize an incremental model for regression using the estimated coefficients.