question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug in scikit-learn multinomial_naive_bayes?

See original GitHub issue

The tests for sklearn_multinomial_naive_bayes are currently failing. See #351

Mismatched elements: 126 / 300 (42%)
Max absolute difference: 5.14276043e-05
Max relative difference: 0.00016642
 x: array([[0.2135  , 0.515825, 0.270674],
       [0.57376 , 0.197127, 0.229113],
       [0.568936, 0.205431, 0.225633],...
 y: array([[0.213498, 0.515857, 0.270662],
       [0.573796, 0.197128, 0.229092],
       [0.568949, 0.205432, 0.225623],...

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
ksaurcommented, Oct 28, 2020

@scnakandala is this something you have time to take a look at? 😃

0reactions
ksaurcommented, Nov 9, 2020

Thank you so much @scnakandala !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Discrete Naive Bayes classifiers crash unnecessarily ... - GitHub
Describe the bug The Naive Bayes classifier allows for a degenerate case in which there is just one class. sklearn.naive_bayes.
Read more >
sklearn.naive_bayes.MultinomialNB
The multinomial Naive Bayes classifier is suitable for classification with discrete features (e.g., word counts for text classification).
Read more >
ValueError when using Multinomial Naive Bayes classifier
I'm trying to implement a naive bayes classifier on UCI's mushroom dataset to test the results against my own NB classifier coded from...
Read more >
Scikit-learn 78:Supervised Learning 56: Naive Bayes classifiers
The video begins with a discussion on the intuition of different Naive Bayes classifiers in Scikit - learn followed by coding.
Read more >
Naive Bayes Classifier From Scratch in Python
In this tutorial you are going to learn about the Naive Bayes algorithm including how it works and how to implement it from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found