Skip to content

Conversation

@shivasubrahmanya
Copy link

This pull request adds a Gaussian Naive Bayes classifier implementation
to the machine_learning module.

What was added:

  • A Gaussian Naive Bayes classifier implemented from scratch
  • No external machine learning libraries are used
  • Includes type hints, proper docstrings, and doctests
  • Handles invalid inputs with appropriate exceptions

Why this is useful:

  • Naive Bayes is a fundamental probabilistic classification algorithm
    widely taught in machine learning and data science
  • Useful for understanding Bayesian classification concepts
  • Complements existing classifiers like Logistic Regression, KNN, and SVM
    already present in the repository

Reference:
https://en.wikipedia.org/wiki/Naive_Bayes_classifier
https://www.cs.cmu.edu/〜textlearning/TextLearning.pdf
https://www.utdallas.edu/〜herve/abdi-bayes.pdf
https://cs229.stanford.edu/notes2020fall/cs229-notes1.pdf

@algorithms-keeper algorithms-keeper bot added the require descriptive names This PR needs descriptive function and/or variable names label Dec 31, 2025
Copy link

@algorithms-keeper algorithms-keeper bot left a comment

Choose a reason for hiding this comment

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

Click here to look at the relevant links ⬇️

🔗 Relevant Links

Repository:

Python:

Automated review generated by algorithms-keeper. If there's any problem regarding this review, please open an issue about it.

algorithms-keeper commands and options

algorithms-keeper actions can be triggered by commenting on this PR:

  • @algorithms-keeper review to trigger the checks for only added pull request files
  • @algorithms-keeper review-all to trigger the checks for all the pull request files, including the modified files. As we cannot post review comments on lines not part of the diff, this command will post all the messages in one comment.

NOTE: Commands are in beta and so this feature is restricted only to a member or owner of the organization.

@algorithms-keeper algorithms-keeper bot added awaiting reviews This PR is ready to be reviewed tests are failing Do not merge until tests pass labels Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviews This PR is ready to be reviewed require descriptive names This PR needs descriptive function and/or variable names tests are failing Do not merge until tests pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant