r/BayesianProgramming • u/_quanttrader_ • Mar 11 '21
r/BayesianProgramming • u/[deleted] • Oct 26 '20
Help needed with Naive Bayes algorithm
I'm making a program and hardcoding a naive bayes classifier.
Have a look [here](https://github.com/matt24ck/bayeshelp) to see my dataset and my 2 files
Whenever I try to run 'predict.py' I get this error message below:
Traceback (most recent call last):
File "predict.py", line 22, in <module>
clf.fit(x_train, y_train)
File "/home/matt24ck/Programming/ca270/naivebayes.py", line 20, in fit
self._mean[c,:] = X_c.mean(axis=0)
IndexError: index 10000 is out of bounds for axis 0 with size 211
Does anyone know how I can fix this? I don't even know why the axis has size 211, or how to change it. What I do know, is that I tried it with the sklearn GaussianNB class and it worked fine. Please help!
r/BayesianProgramming • u/_quanttrader_ • Jan 15 '20
Allocation models that know their unknowns - Risk.net
r/BayesianProgramming • u/_quanttrader_ • Jan 02 '19
Think you need to learn Bayesian Analysis? Read this first – Models are illuminating and wrong
r/BayesianProgramming • u/[deleted] • Sep 12 '17
Osvaldo Martin: 9781785883804: Amazon.com: Books
r/BayesianProgramming • u/Jk_123c • Sep 09 '22
Baye’s Rule
Hello, How would you restate the probability z=0 and y=0 according to Baye’s Rule? Thanks!