MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / predict

Method predict

bayesian_ml/1/nb.py:72–73  ·  view source on GitHub ↗
(self, X)

Source from the content-addressed store, hash-verified

70 return P
71
72 def predict(self, X):
73 return np.round(self.predict_proba(X))
74
75 def score(self, X, Y):
76 return np.mean(self.predict(X) == Y)

Callers 3

scoreMethod · 0.95
confusion_matrixMethod · 0.95
get_3_misclassifiedMethod · 0.95

Calls 1

predict_probaMethod · 0.95

Tested by

no test coverage detected