forked from tech-srl/code2seq
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrain.bat
More file actions
18 lines (14 loc) · 715 Bytes
/
train.bat
File metadata and controls
18 lines (14 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
:: Change the following values to train a new model.
:: type: the name of the new model, only affects the saved file name.
:: dataset: the name of the dataset, as was preprocessed using preprocess.sh
:: test_data: by default, points to the validation set, since this is the set that
:: will be evaluated after each training iteration. If you wish to test
:: on the final (held-out) test set, change 'val' to 'test'.
set type=java-small-model
set dataset_name=java-small
set data_dir=data\java-small
set data=%data_dir%\%dataset_name%
set test_data=%data_dir%\%dataset_name%.val.c2s
set model_dir=models\%type%
md %model_dir%
python -u code2seq.py --data %data% --test %test_data% --save_prefix %model_dir%\model