Module Hub Beta

ML.LINREG.PREDICT

ML.LINREG.PREDICT key feature [...]

The linear regression predictor stored in key is used for predicting the result based on one or more features that are given by the feature argument(s).

Return Value

Bulk string reply, specifically the predicted value

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.