MCPcopy Index your code
hub / github.com/wepe/MachineLearning / predict

Method predict

SVM/SVM_by_QP/SVCQP.py:98–99  ·  view source on GitHub ↗
(self, X)

Source from the content-addressed store, hash-verified

96 return y_predict + self.b
97
98 def predict(self, X):
99 return np.sign(self.project(X))
100

Callers 3

test_linearFunction · 0.95
test_non_linearFunction · 0.95
test_softFunction · 0.95

Calls 1

projectMethod · 0.95

Tested by 3

test_linearFunction · 0.76
test_non_linearFunction · 0.76
test_softFunction · 0.76