Module Hub Beta


key intercept coefficient [...]

This command sets the linear regression predictor that’s stored in key. The predictor’s intercept is specified by intercept, followed by one or more coefficient arguments of the independent variables.

Return Value

Simple string reply


redis> ML.LINREG.SET linear 2 3 4 5
redis> ML.LINREG.PREDICT linear 1 1 1

© 2017 Redis Labs, Inc. All rights reserved.