Module Hub Beta


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


redis> ML.LOGREG.SET logistic 0 2 2
redis> ML.LOGREG.PREDICT logistic -3 1

© 2017 Redis Labs, Inc. All rights reserved.