Skip to content

Implementations of the Machine Learning models and algorithms from scratch using NumPy only.

License

Notifications You must be signed in to change notification settings

siAyush/ScratchML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License

Python NumPy License

About

Implementations of the Machine Learning models and algorithms from scratch using NumPy only. The purpose of this project is to learn the internal working of algorithms not to produce optimized algorithms.

Implementations

Supervised Learning

Unsupervised Learning

Deep Learning

Installation

$ git clone https://github.com/siAyush/ScratchML.git
$ cd ScratchML
$ python3 setup.py install

Run Examples

$ python3 scratch_ml/demo/{filename}.py

Note : "filename" is replaced by the file you want to run.

Example:

$ python3 scratch_ml/demo/k_nearest_neighbor.py

Examples

Linear Regression

$ python3 scratch_ml/demo/linear_regression.py

Linear Regression

Gradient Boosting Classifier

$ python3 scratch_ml/demo/gradient_boosting_classifier.py

Gradient Boosting Classifier

Neural Network

$ python3 scratch_ml/demo/neural_network.py

Neural Network

Neural Network

Neural Network

Convolutional Neural Network

$ python3 scratch_ml/demo/convolutional_neural_network.py

CNN

CNN