Home | Trees | Indices | Help |
|
---|
|
_common.LinearModel --+ | LogisticRegressionModel
A linear binary classification model derived from logistic regression.
>>> data = array([0.0, 0.0, 1.0, 1.0, 1.0, 2.0, 1.0, 3.0]).reshape(4,2) >>> lrm = LogisticRegressionWithSGD.train(sc.parallelize(data)) >>> lrm.predict(array([1.0])) > 0 True
Instance Methods | |||
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Mar 2 16:35:00 2014 | http://epydoc.sourceforge.net |