/machine-learning-snippets

Python Machine Learning Snippets contains various machine learning examples as Jupyter notebooks with scikit-learn, statsmodel, numpy and other libraries.

Primary LanguageJupyter NotebookMIT LicenseMIT

Python Machine Learning Snippets

Python Machine Learning Snippets is my ongoing pet project where I try out different machine learning models. This project contains various machine learning examples as Jupyter notebooks with scikit-learn, statsmodel, numpy and other libraries.

Note: This is an ongoing project and far away from complete.

Getting Started

Project Setup

All the required Python packages can be installed with pipenv.

pip install --user pipenv

Install all the required packages

$ pipenv install --dev

Note: To run the tests, export the notebooks or more details see BUILD.md

Run the Notebook

You can start jupyter-lab to play around with the Juypter notebooks.

pipenv run jupyter-lab

Upgrade Python Packages

Check which packages have changed.

pipenv update --outdated

This will upgrade everything.

pipenv update

The Snippets...

The following machine learning snippets are available as Jupyter Notebook.

Basics

Classification

Text

Linear

SVM

Non-parametric (nonlinear)

Ensemble learning

Neural network

Regression

Linear

SVM

Non-parametric (nonlinear)

Ensemble learning

Neural network

Clustering

Text & model evaluation

Centroid-based clustering

Density-based clustering

Connectivity based clustering

Distribution-based clustering

Dimension reduction

Linear

Nonlinear (Manifold learning)

Hyperparameter optimization

AutoML

Classification

Regression

Autoencoder

Transfer learning & pre-trained models