Module Hub Beta

ML.LOGREG.PREDICT

key feature [...]

The logistic 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.LOGREG.SET logistic 0 2 2
OK
redis> ML.LOGREG.PREDICT logistic -3 1
“0.017986209962091559”

© 2017 Redis Labs, Inc. All rights reserved.