MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / predict

Method predict

svm_class/svm_smo.py:252–253  ·  view source on GitHub ↗
(self, X)

Source from the content-addressed store, hash-verified

250
251
252 def predict(self, X):
253 return np.sign(self._decision_function(X))
254
255 def score(self, X, Y):
256 P = self.predict(X)

Callers 2

scoreMethod · 0.95
svm_spam.pyFile · 0.45

Calls 1

_decision_functionMethod · 0.95

Tested by

no test coverage detected