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
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.