How regmi-saugat/ml_algorithms works
Project type and purpose
• This is an open-source Python library of classic Machine Learning algorithms implemented from scratch.
• Its purpose is educational: to demonstrate algorithm internals (Linear Regression, Logistic Regression, Naive Bayes, Perceptron, SVM) and provide test harnesses.
File structure
• Top-level:
• README.md (entry point describing all modules).
• Directories for each algorithm:
– Linear Regression/
• linear_regression.py (core implementation)
• linear_regression_tests.py (unit tests)
• README.md (algorithm-specific doc)
– Logistic Regression/ (same structure)
– Naive Bayes/
– Perceptron/ (no README but has perceptron.py)
– SVM/ (contains Support Vector Machine script)
• __pycache__ folders under each (build artifacts).
• No external services, no separate frontend/backend—pure library.
README for additional insights
• Lists each algorithm as a link, reaffirming that each directory is a self-contained module with its own docs and tests.
• No special instructions on architecture; it's a flat, modular directory per algorithm.