Some machine learning models in scikit-learn and deep learning models in pytorch.
Included:
- basic
1_basic.py
: pytorch的基本用法。2_hook.py
: pytorch中的钩子函数。3_pack_pad
: 使用pack_padded_sequence
来处理用RNN时遇到变长序列的情况。
- Visualization
tbx.py
: pytorch中使用tensorboardX
。matplotlib_notes.ipynb
: 一些关于matplotlib
的笔记。
- Regression
- Linear Regression: 基于pytorch
- Logistic Regression: 基于pytorch,基于numpy详见code-for-nlp-beginner
- Gaussian Process Regression: 基于sklearn。
- Classification
compare.ipynb
: 常见机器学习分类算法在人造数据上的分类效果,参考sklearn。
- Neural Network
- MLP
- CNN
- RNN
- Generative Models
- RBM
- VAE: VAE and CVAE
- GAN
- Transformer
- others
- residual block
- Reinforcement Learning
- Q-Learning
- Sarsa, Sarsa-lambda
- Deep Q Network
- Policy Gradient
- Actor Critic
- Projects
- image captioning
- language model using RNN
- sentiment analysis on IMDB
- stock prediction using LSTM
- style transfer
- Kaggle
- titanic: score 81.818%, top 5%
- Sentiment Analysis on Movie Reviews: 详见code-for-nlp-beginner, score 63.61%, top 20%
Reference: