Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.2 KB

readme.md

File metadata and controls

42 lines (26 loc) · 1.2 KB

Reprouduce Experiments on WikiSQL

  1. First, generate the proprocessed file with the following script:
bash scripts/gen_processed_pkl.sh
  1. Evaluate the coverage and generate consistent programs by:
python scripts/eval_coverage demo 6

where demo is the experiemnt id and 6 the maximal length of a sketch.

  1. Cache the generated programs with:
python scripts/cache_lf.py processed/demo.train.programs.sketch.stat processed/demo.train.programs train processed/train.pkl
python scripts/cache_lf.py processed/demo.dev.programs.sketch.stat processed/demo.dev.programs dev processed/dev.pkl
python scripts/cache_lf.py processed/demo.test.programs.sketch.stat processed/demo.test.programs test processed/test.pkl

You can skip step1-3 if you downloaded my processed file.

  1. Train the model:
python train_seq.py demo

where demo is your experiment id.

The configs of the training is in train_config/train_config. Currently, two model types are included:

  • seq: seq2seq with abstract programs
  • struct: abstract programs with structured alignments

The checkpoints will be available in checkpoints/