TensorFlow implementation of Leveraging Grammar and Reinforcement Learning for Neural Program Synthesis.
- Python 2.7+
- tqdm
- karel
- TensorFlow 1.4.1
Prepare with:
$ pip install -r requirements.txt
To generate datasets:
$ python dataset.py --data_dir=data --max_depth=5
To train a model:
$ python main.py
$ tensorboard --logdir=logs --host=0.0.0.0
Currently, only maximum likelihood optimization is implemented. Expected correctness and RL is in progress.
(in progress)
Taehoon Kim / @carpedm20