zotroneneis/machine_learning_basics
zotroneneis/machine_learning_basics has 4,418 GitHub stars and 832 forks. GitHot measured 0 stars in 24 hours and -1 in 7 days. Last checked 2026-11-05 18:58 UTC. Last push 2024-06-27.
Plain Python implementations of basic machine learning algorithms
Measured star growth
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalMachine 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.
- Bayesian Linear Regression
- Decision tree for classification
- Decision tree for regression
- k-nearest-neighbor
- k-Means clustering
- Linear Regression
- Logistic Regression
- Multinomial Logistic Regression
- Perceptron
- Principal Component Analysis
- Simple neural network with one hidden layer
- Softmax regression
- Support vector machines

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.

Live demo
Run the notebooks online without having to clone the repository or install jupyter: .
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).
Explore related projects
tensorflow/tensorflow
An Open Source Machine Learning Framework for Everyone
201,311 starshuggingface/transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
168,576 starsAUTOMATIC1111/stable-diffusion-webui
Stable Diffusion web UI
165,264 starsComfy-Org/ComfyUI
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
145,310 stars