Module Hub Beta

ML.LINREG.SET

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

Examples

redis> ML.LINREG.SET linear 2 3 4 5
OK
redis> ML.LINREG.PREDICT linear 1 1 1
“14”

© 2017 Redis Labs, Inc. All rights reserved.