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

Method predict

bayesian_ml/2/probit.py:55–56  ·  view source on GitHub ↗
(self, X)

Source from the content-addressed store, hash-verified

53 return norm.cdf(X.dot(self.w) / self.sigma)
54
55 def predict(self, X):
56 return np.round(self.predict_proba(X))
57
58 def score(self, X, Y):
59 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