Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
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