All Projects → trekhleb → Homemade Machine Learning

trekhleb / Homemade Machine Learning

Licence: mit
🤖 Python examples of popular machine learning algorithms with interactive Jupyter demos and math being explained

Programming Languages

python
139335 projects - #7 most used programming language
Jupyter Notebook
11667 projects

Projects that are alternatives of or similar to Homemade Machine Learning

25daysinmachinelearning
I will update this repository to learn Machine learning with python with statistics content and materials
Stars: ✭ 53 (-99.71%)
Mutual labels:  jupyter-notebook, machine-learning-algorithms, machinelearning
Notebooks Statistics And Machinelearning
Jupyter Notebooks from the old UnsupervisedLearning.com (RIP) machine learning and statistics blog
Stars: ✭ 270 (-98.55%)
Mutual labels:  jupyter-notebook, machine-learning-algorithms, machinelearning
Articles
A repository for the source code, notebooks, data, files, and other assets used in the data science and machine learning articles on LearnDataSci
Stars: ✭ 350 (-98.12%)
Mutual labels:  jupyter-notebook, machine-learning-algorithms, machinelearning
Machine learning basics
Plain python implementations of basic machine learning algorithms
Stars: ✭ 3,557 (-80.87%)
Mutual labels:  algorithm, jupyter-notebook, machine-learning-algorithms
Algorithm Playground
An (old) and unstructured (messy tbh) collection of programming exercises.
Stars: ✭ 75 (-99.6%)
Mutual labels:  algorithm, jupyter-notebook, jupyter
Boostaroota
A fast xgboost feature selection algorithm
Stars: ✭ 165 (-99.11%)
Mutual labels:  algorithm, machine-learning-algorithms, machinelearning
Bet On Sibyl
Machine Learning Model for Sport Predictions (Football, Basketball, Baseball, Hockey, Soccer & Tennis)
Stars: ✭ 190 (-98.98%)
Mutual labels:  jupyter-notebook, machine-learning-algorithms, machinelearning
Model Describer
model-describer : Making machine learning interpretable to humans
Stars: ✭ 22 (-99.88%)
Mutual labels:  algorithm, machine-learning-algorithms, machinelearning
Algorithmmap
建立你的算法地图:如何高效学习算法;算法工程师:从小白到专家
Stars: ✭ 47 (-99.75%)
Mutual labels:  algorithm, jupyter-notebook, machinelearning
Ipytracer
📊 Algorithm Visualizer for IPython/Jupyter Notebook
Stars: ✭ 138 (-99.26%)
Mutual labels:  algorithm, jupyter-notebook, jupyter
Tensorwatch
Debugging, monitoring and visualization for Python Machine Learning and Data Science
Stars: ✭ 3,191 (-82.84%)
Mutual labels:  jupyter-notebook, jupyter, machinelearning
Spark Jupyter Aws
A guide on how to set up Jupyter with Pyspark painlessly on AWS EC2 clusters, with S3 I/O support
Stars: ✭ 259 (-98.61%)
Mutual labels:  jupyter-notebook, jupyter
Icsharp
C# kernel for Jupyter
Stars: ✭ 263 (-98.59%)
Mutual labels:  jupyter-notebook, jupyter
Grad Cam Tensorflow
tensorflow implementation of Grad-CAM (CNN visualization)
Stars: ✭ 261 (-98.6%)
Mutual labels:  jupyter-notebook, machinelearning
Gophernotes
The Go kernel for Jupyter notebooks and nteract.
Stars: ✭ 3,100 (-83.33%)
Mutual labels:  jupyter-notebook, jupyter
Spacy Notebooks
💫 Jupyter notebooks for spaCy examples and tutorials
Stars: ✭ 255 (-98.63%)
Mutual labels:  jupyter-notebook, jupyter
Geopython
Notebooks and libraries for spatial/geo Python explorations
Stars: ✭ 268 (-98.56%)
Mutual labels:  jupyter-notebook, jupyter
Cc150
《程序员面试金典》(cc150)
Stars: ✭ 326 (-98.25%)
Mutual labels:  jupyter-notebook, jupyter
Football Crunching
Analysis and datasets about football (soccer)
Stars: ✭ 252 (-98.64%)
Mutual labels:  jupyter-notebook, jupyter
2018 Machinelearning Lectures Esa
Machine Learning Lectures at the European Space Agency (ESA) in 2018
Stars: ✭ 280 (-98.49%)
Mutual labels:  jupyter-notebook, machinelearning

Homemade Machine Learning

Binder Build Status

You might be interested in 🤖 Interactive Machine Learning Experiments

For Octave/MatLab version of this repository please check machine-learning-octave project.

This repository contains examples of popular machine learning algorithms implemented in Python with mathematics behind them being explained. Each algorithm has interactive Jupyter Notebook demo that allows you to play with training data, algorithms configurations and immediately see the results, charts and predictions right in your browser. In most cases the explanations are based on this great machine learning course by Andrew Ng.

The purpose of this repository is not to implement machine learning algorithms by using 3rd party library one-liners but rather to practice implementing these algorithms from scratch and get better understanding of the mathematics behind each algorithm. That's why all algorithms implementations are called "homemade" and not intended to be used for production.

Supervised Learning

In supervised learning we have a set of training data as an input and a set of labels or "correct answers" for each training set as an output. Then we're training our model (machine learning algorithm parameters) to map the input to the output correctly (to do correct prediction). The ultimate purpose is to find such model parameters that will successfully continue correct input→output mapping (predictions) even for new input examples.

Regression

In regression problems we do real value predictions. Basically we try to draw a line/plane/n-dimensional plane along the training examples.

Usage examples: stock price forecast, sales analysis, dependency of any number, etc.

🤖 Linear Regression

Classification

In classification problems we split input examples by certain characteristic.

Usage examples: spam-filters, language detection, finding similar documents, handwritten letters recognition, etc.

🤖 Logistic Regression

Unsupervised Learning

Unsupervised learning is a branch of machine learning that learns from test data that has not been labeled, classified or categorized. Instead of responding to feedback, unsupervised learning identifies commonalities in the data and reacts based on the presence or absence of such commonalities in each new piece of data.

Clustering

In clustering problems we split the training examples by unknown characteristics. The algorithm itself decides what characteristic to use for splitting.

Usage examples: market segmentation, social networks analysis, organize computing clusters, astronomical data analysis, image compression, etc.

🤖 K-means Algorithm

Anomaly Detection

Anomaly detection (also outlier detection) is the identification of rare items, events or observations which raise suspicions by differing significantly from the majority of the data.

Usage examples: intrusion detection, fraud detection, system health monitoring, removing anomalous data from the dataset etc.

🤖 Anomaly Detection using Gaussian Distribution

Neural Network (NN)

The neural network itself isn't an algorithm, but rather a framework for many different machine learning algorithms to work together and process complex data inputs.

Usage examples: as a substitute of all other algorithms in general, image recognition, voice recognition, image processing (applying specific style), language translation, etc.

🤖 Multilayer Perceptron (MLP)

Machine Learning Map

Machine Learning Map

The source of the following machine learning topics map is this wonderful blog post

Prerequisites

Installing Python

Make sure that you have Python installed on your machine.

You might want to use venv standard Python library to create virtual environments and have Python, pip and all dependent packages to be installed and served from the local project directory to avoid messing with system wide packages and their versions.

Installing Dependencies

Install all dependencies that are required for the project by running:

pip install -r requirements.txt

Launching Jupyter Locally

All demos in the project may be run directly in your browser without installing Jupyter locally. But if you want to launch Jupyter Notebook locally you may do it by running the following command from the root folder of the project:

jupyter notebook

After this Jupyter Notebook will be accessible by http://localhost:8888.

Launching Jupyter Remotely

Each algorithm section contains demo links to Jupyter NBViewer. This is fast online previewer for Jupyter notebooks where you may see demo code, charts and data right in your browser without installing anything locally. In case if you want to change the code and experiment with demo notebook you need to launch the notebook in Binder. You may do it by simply clicking the "Execute on Binder" link in top right corner of the NBViewer.

Datasets

The list of datasets that is being used for Jupyter Notebook demos may be found in data folder.

Supporting the project

You may support this project via ❤️GitHub or ❤️Patreon.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].