Pull request Compare This branch is 4252 commits behind apache:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
infer_sort.py
lstm.py
lstm_sort.py
rnn_model.py
sort_io.py

README.md

This is an example of using bidirection lstm to sort an array.

Firstly, generate data by:

cd data
python gen_data.py

Then, train the model by:

python lstm_sort.py

At last, test model by:

python infer_sort.py 234 189 785 763 231

and will output sorted seq

189
231
234
763
785