How pavanng2006-oss/machine-learning-from-scratch works
This repository is a NumPy-based machine-learning learning project: users study standalone implementations of supervised and unsupervised algorithms, alongside separate mathematics and NumPy exercises. The typical algorithm workflow is to provide training arrays, fit a model, then request predictions or cluster/reduced-data results. The README documents the capabilities, but most algorithm sources were not sampled; their internal flow is therefore not inferred. The math and NumPy exercises are independent examples, not a shared runtime pipeline.
Main entry points: random_forest_classifier.py Random forest · decision_tree_classifier.py Decision tree · linear_regression_closed.py Linear regression · linear_regression_gradient_descent.py Gradient descent regression
Components 14
Supervised learning
- Linear regression
algorithms/supervised/linear_regression_closed.py - Gradient descent regression
algorithms/supervised/linear_regression_gradient_descent.py - Logistic regression
algorithms/supervised/logistic_regression.py - K-nearest neighbors
algorithms/supervised/k_nearest_neighbours.py - Gaussian naive Bayes
algorithms/supervised/gaussian_naive_bayes.py - Decision tree
algorithms/supervised/decision_tree_classifier.py - Random forest
algorithms/supervised/random_forest_classifier.py - Perceptron
algorithms/supervised/perceptron.py
Unsupervised learning
- K-means clustering
algorithms/unsupervised/k_means_clustering.py - Principal component analysis
algorithms/unsupervised/principal_component_analysis.py - DBSCAN
algorithms/unsupervised/DBSCAN.py
Math foundations
- Math concepts
math-vectors-matrices-tensors/solution.py
NumPy exercises
- NumPy operations
numpy-matrix-multiplication/solution.py
Other components
- Learner
Connections 14
- Learner → Linear regression: studies or runs
README.md - Learner → Gradient descent regression: studies or runs
README.md - Learner → Logistic regression: studies or runs
README.md - Learner → K-nearest neighbors: studies or runs
README.md - Learner → Gaussian naive Bayes: studies or runs
README.md - Learner → Decision tree: studies or runs
README.md - Learner → Random forest: studies or runs
README.md - Learner → Perceptron: studies or runs
README.md - Learner → K-means clustering: studies or runs
README.md - Learner → Principal component analysis: studies or runs
README.md - Learner → DBSCAN: studies or runs
README.md - Learner → Math concepts: studies
README.md - Learner → NumPy operations: studies
README.md - Random forest → Decision tree: creates and fits
algorithms/supervised/random_forest_classifier.py