Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] NaiveBayes: Handle degenerate cases #1442

Merged
merged 1 commit into from
Jul 12, 2016
Merged

Conversation

thocevar
Copy link
Contributor

No description provided.

@codecov-io
Copy link

codecov-io commented Jul 11, 2016

Current coverage is 87.92%

Merging #1442 into master will increase coverage by <.01%

@@             master      #1442   diff @@
==========================================
  Files            77         77          
  Lines          7584       7586     +2   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           6668       6670     +2   
  Misses          916        916          
  Partials          0          0          

Sunburst

Powered by Codecov. Last updated by 9bf3fa0...2256532

model = nb(t)
self.assertEqual(model.domain.attributes, ())
self.assertEqual(model(t[0]), 1)
self.assertTrue(all(model(t[0]) == 1))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this assertion different from the one in the previous line?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants