/finch

Lots of Machine Learning Models based on TensorFlow / PyTorch (Keep Updating)

Primary LanguageJupyter Notebook

ucl-logo

finch is a project that contains the collection of my implementations of machine learning models and their tests based on modern frameworks (mainly TensorFlow and PyTorch).

I am actively responsible for this project, and there will be more models in the future ...

You are more than welcome to send an email to me in English / Chinese for any suggestion or question, I will try my best to answer as soon as I see it.

Installation

First get the project folder

git clone https://github.com/zhedongzheng/finch.git

Then run the test file that you are interested in

python xxxx_test.py

The main dependence is:

Other Language Support

中文

Style of My Code

Most deep learning projects on GitHub usually have several scripts such as train.py, model.py, main.py and so on. However, personally I prefer integrating all the functionalities into a single model with fit() and predict() interfaces (scikit-learn API style), and then write separate test files for different incoming data. All the code below follow this style.

Contents

Machine Learning

Linear Model

  • TensorFlow   |   Linear Regression     Model     Test   |  

  • TensorFlow   |   Logistic Regression     Model     Test   |  

  • Java   |   Logistic Regression     Model     Test   |  

Support Vector Machine

  • TensorFlow   |   Linear SVM Classifier     Model     Test   |  

  • Java   |   Linear SVM Classifier     Model     Test   |  

  • Libsvm   |   Non-linear SVM Classifier     Model     Test   |  

Ensemble

  • NumPy   |   Bagging Classifier     Model     Test   |  

  • NumPy   |   Adaboost Classifier     Pseudocode     Model     Test   |  

  • NumPy   |   Random Forest Classifier     Model     Test   |  

Decomposition

  • TensorFlow   |   Non-negative Matrix Factorization     Model     MovieLens Test   |  

Deep Learning

Multilayer Perceptron

Convolutional Network

Recurrent Network

Autoencoder

Highway Network

  • TensorFlow   |   MLP Highway Classifier     Model     MNIST Test   |  

  • TensorFlow   |   Conv1D Highway Classifier     Model     IMDB Test   |  

Generative Adversarial Network

  • TensorFlow   |   MLP GAN     Model     Test   |   MLP Conditional GAN     Model     Test   |  

  • TensorFlow   |   DCGAN     MNIST     Model     Test     Result   |  

Natural Language Processing

Text Preprocessing

Language Model

  • Sklearn   |   Latent Semantic Analysis     Wiki     Model     Test   |  

  • Python   |   Tri-Gram     Wiki     Model     Test   |  

  • Sklearn   |   TF-IDF     Test     Result   |  

  • TensorFlow   |   Word2vec (Skip-Gram)     Model     Text8 Test   |  

Text Classification

Text Generation

Sequence Labelling

Sequence to Sequence

Computer Vision

OpenCV