Algo-Phantoms / Algo-ScriptML

Scripts of Machine Learning Algorithms from Scratch. Implementations of machine learning models and algorithms using nothing but NumPy with a focus on accessibility. Aims to cover everything from basic to advance.
MIT License
90 stars 66 forks source link

Code optimisation and readability - Naive Bayes Classifier #213

Open ruhi47 opened 1 week ago

ruhi47 commented 1 week ago

Improvements: Consistency and Readability: Use consistent variable naming throughout the class (divided_classes, joint_prob, likelihood, etc.).

Efficiency: Consider vectorization or optimization techniques for better performance, especially in loops iterating over data points.

Documentation: Ensure all functions have clear docstrings describing parameters and return values for better readability and understanding.

ruhi47 commented 1 week ago

I am GSSOC'24 Contributor. Please assign this issue to me. Thank you.