Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ nb.py
File
nb.py
bayesian_ml/1/nb.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
# Naive Bayes with prior on mean and precision of Gaussian
2
# mean | precision ~ N(0, c / precision)
3
# precision ~ Gamma(a, b)
4
import
numpy
as
np
Callers
nothing calls this directly
Calls
7
NB
Class · 0.85
plot_image
Function · 0.70
fit
Method · 0.45
score
Method · 0.45
confusion_matrix
Method · 0.45
get_3_misclassified
Method · 0.45
get_3_most_ambiguous
Method · 0.45
Tested by
no test coverage detected