Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
score
Method · 0.95
confusion_matrix
Method · 0.95
get_3_misclassified
Method · 0.95
Calls
1
predict_proba
Method · 0.95
Tested by
no test coverage detected