How madhug-nadig/machine-learning-algorithms-from-scratch works
This repository is a set of independent, from-scratch machine-learning and search demonstrations, rather than one integrated application. The typical workflow is to run an individual script, prepare or load example data, execute an algorithm, then print, visualize, or use its result. Major branches include supervised learning, clustering, recommendation and pattern discovery, genetic optimization, and graph search. Sampled excerpts support several specific data/model and model/visualization links; other algorithm modules are included as standalone components because their internal workflows were not shown.
Main entry points: DBSCAN.py DBSCAN · chronic_kidney_disease.csv Kidney dataset · concentric_circles.csv Concentric circles · cron_jobs_schedule.csv Cron schedule data
Components 20
Supervised Learning
- Linear regression
Linear Regression.py - Logistic regression
Logistic Regression.py - Naive Bayes
Naive Bayes.py - Decision trees
Decision Trees.py - K nearest neighbors
K Nearest Neighbours.py - Parallel KNN
K Nearest Neighbours - In Parallel.py - Support vector machine
Support Vector Machine.py - Random forest
random forest classifier.py
Unsupervised Learning
- K-means clustering
K Means Clustering.py - DBSCAN
DBSCAN.py - Mean shift
Mean Shift.py
Recommendations
- Collaborative filtering
Collaborative Filtering.py - FP growth
FP Growth.py
Search and Optimization
- Genetic algorithm
Genetic Algorithm.py - A-star search
a-star.py
Other components
- Script runner
- Kidney dataset
data/chronic_kidney_disease.csv - Concentric circles
data/concentric_circles.csv - Cron schedule data
data/cron_jobs_schedule.csv - Search graph input
data/graph.in
Connections 6
- Kidney dataset → K nearest neighbors: loads data
K Nearest Neighbours.py - Kidney dataset → Parallel KNN: loads data
K Nearest Neighbours - In Parallel.py - Concentric circles → DBSCAN: loads data
DBSCAN.py - DBSCAN → DBSCAN: visualizes clusters
DBSCAN.py - Cron schedule data → Genetic algorithm: loads schedule
Genetic Algorithm.py - Search graph input → A-star search: loads map
a-star.py