All Projects → izhangzhihao → MachineLearningInAction

izhangzhihao / MachineLearningInAction

Licence: other
No description, website, or topics provided.

Programming Languages

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

Install pyenv

on Mac OS : brew install pyenv
on Linux : curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash

Install python in pyenv

pyenv install 3.6.2

install direnv :https://github.com/direnv/direnv

...

To run char rnn

train

python CharRNN/train.py \
  --use_embedding \
  --input_file CharRNN/data/poetry.txt \
  --name poetry \
  --learning_rate 0.005 \
  --num_steps 26 \
  --num_seqs 32 \
  --max_steps 10000

get sample

python CharRNN/sample.py \
  --use_embedding \
  --converter_path model/poetry/converter.pkl \ 
  --checkpoint_path model/poetry/ \ 
  --max_length 300
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].