RoboticsClubIITJ / ML-DL-implementation

An implementation of ML and DL algorithms from scratch in python using nothing but NumPy and Matplotlib.
BSD 3-Clause "New" or "Revised" License
49 stars 69 forks source link

added Gaussian Naives Bayes #47

Closed Saptashrungi closed 3 years ago

Saptashrungi commented 3 years ago

References to other Issues or PRs or Relevant literature

Brief description of what is fixed or changed

The dataset used contains of Height, Weight and Foot-size of males and females. Given the class, we predict the gender using Gaussian Naive Bayes.

Other comments

References used: https://chrisalbon.com/machine_learning/naive_bayes/naive_bayes_classifier_from_scratch/ https://hackernoon.com/implementation-of-gaussian-naive-bayes-in-python-from-scratch-c4ea64e3944d

Saptashrungi commented 3 years ago

In one line, in gaussian_naive_bayes_example.py, if I format it using PEP8 its exceeding characters in a line and on reducing the characters it (Travis CI) gives error.

agrawalshubham01 commented 3 years ago

In one line, in gaussian_naive_bayes_example.py, if I format it using PEP8 its exceeding characters in a line and on reducing the characters it (Travis CI) gives error.

I think we should create a .flake8 file and address all the exceptions in the file.

Suggestions?? @TarunTomar122 @Saptashrungi @rohansingh9001

TarunTomar122 commented 3 years ago

@agrawalshubham01 you know i would appreciate it. You should do that.

TarunTomar122 commented 3 years ago

@Saptashrungi final fix commit is out of order?! why is it behaving like that any insights.? @rohansingh9001

Saptashrungi commented 3 years ago

Out of order? I committed after the comment and it passed all checks.

TarunTomar122 commented 3 years ago

:+1: