Skip to content

MultinomialNB fails when features have negative values #176

Description

@sunnmy

On my dataset machineJS failed because it was trying to use negative X values with multinomial Naive Bayes classifier.

Suggested solutions:

  • Skip MultinomialNB when some of the features have negative values.
  • Use GaussianNB instead.
  • Normalize features to [0, 1] range.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions