Module Hub Beta

ML.LOGREG.SET

key intercept coefficient [...]

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

© 2017 Redis Labs, Inc. All rights reserved.