Home | Trees | Indices | Help |
|
---|
|
_common.LinearModel --+ | SVMModel
A support vector machine.
>>> data = array([0.0, 0.0, 1.0, 1.0, 1.0, 2.0, 1.0, 3.0]).reshape(4,2) >>> svm = SVMWithSGD.train(sc.parallelize(data)) >>> svm.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 |