zotroneneis/machine_learning_basics

Plain python implementations of basic machine learning algorithms

Jupyter Notebook

4,419

137 commits

updated Jun 27, 2024

See the code

README

Machine learning basics

This repository contains implementations of basic machine learning algorithms in plain Python (Python Version 3.6+). All algorithms are implemented from scratch without using additional machine learning libraries. The intention of these notebooks is to provide a basic understanding of the algorithms and their underlying structure, not to provide the most efficient implementations.

alt text

Data preprocessing

After several requests I started preparing notebooks on how to preprocess datasets for machine learning. Within the next months I will add one notebook for each kind of dataset (text, images, ...). As before, the intention of these notebooks is to provide a basic understanding of the preprocessing steps, not to provide the most efficient implementations.

alt text

Live demo

Run the notebooks online without having to clone the repository or install jupyter: Binder.

Note: this does not work for the data_preprocessing.ipynb and image_preprocessing.ipynb notebooks because they require downloading a dataset first.

Feedback

If you have a favorite algorithm that should be included or spot a mistake in one of the notebooks, please let me know by creating a new issue.

License

See the LICENSE file for license rights and limitations (MIT).

algorithm
ipynb
kmeans
k-nearest-neighbor
k-nearest-neighbours
k-nn
linear-regression
logistic-regression
machine-learning
machine-learning-algorithms
neural-network
neural-networks
perceptron
python
python3
python-implementations

zotroneneis/machine_learning_basics

Plain python implementations of basic machine learning algorithms

Jupyter Notebook

4,419

137 commits

updated Jun 27, 2024

See the code

README

Machine learning basics

This repository contains implementations of basic machine learning algorithms in plain Python (Python Version 3.6+). All algorithms are implemented from scratch without using additional machine learning libraries. The intention of these notebooks is to provide a basic understanding of the algorithms and their underlying structure, not to provide the most efficient implementations.

alt text

Data preprocessing

After several requests I started preparing notebooks on how to preprocess datasets for machine learning. Within the next months I will add one notebook for each kind of dataset (text, images, ...). As before, the intention of these notebooks is to provide a basic understanding of the preprocessing steps, not to provide the most efficient implementations.

alt text

Live demo

Run the notebooks online without having to clone the repository or install jupyter: Binder.

Note: this does not work for the data_preprocessing.ipynb and image_preprocessing.ipynb notebooks because they require downloading a dataset first.

Feedback

If you have a favorite algorithm that should be included or spot a mistake in one of the notebooks, please let me know by creating a new issue.

License

See the LICENSE file for license rights and limitations (MIT).

algorithm
ipynb
kmeans
k-nearest-neighbor
k-nearest-neighbours
k-nn
linear-regression
logistic-regression
machine-learning
machine-learning-algorithms
neural-network
neural-networks
perceptron
python
python3
python-implementations

Significant stargazers

Joseph Crail

89 followers · starred Mar 2018

Haoyu Qiu

449 followers · starred Mar 2018

hatarist

74 followers · starred Mar 2018

Fredrik Norén

309 followers · starred Mar 2018