Module Hub Beta


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


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

© 2017 Redis Labs, Inc. All rights reserved.