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

Method predict

supervised_class/perceptron.py:63–64  ·  view source on GitHub ↗
(self, X)

Source from the content-addressed store, hash-verified

61 plt.show()
62
63 def predict(self, X):
64 return np.sign(X.dot(self.w) + self.b)
65
66 def score(self, X, Y):
67 P = self.predict(X)

Callers 2

fitMethod · 0.95
scoreMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected