Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ score
Method
score
bayesian_ml/2/probit.py:58–59 ·
view source on GitHub ↗
(self, X, Y)
Source
from the content-addressed store, hash-verified
56
return
np.round(self.predict_proba(X))
57
58
def
score(self, X, Y):
59
return
np.mean(self.predict(X) == Y)
60
61
def
confusion_matrix(self, X, Y):
62
P = self.predict(X)
Callers
1
probit.py
File · 0.45
Calls
1
predict
Method · 0.95
Tested by
no test coverage detected