MCPcopy 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)
4import numpy as np

Callers

nothing calls this directly

Calls 7

NBClass · 0.85
plot_imageFunction · 0.70
fitMethod · 0.45
scoreMethod · 0.45
confusion_matrixMethod · 0.45
get_3_misclassifiedMethod · 0.45
get_3_most_ambiguousMethod · 0.45

Tested by

no test coverage detected