Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

train.sh 984 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  1. #!/usr/bin/env bash
  2. ###########################################################
  3. # Change the following values to train a new model.
  4. # type: the name of the new model, only affects the saved file name.
  5. # dataset: the name of the dataset, as was preprocessed using preprocess.sh
  6. # test_data: by default, points to the validation set, since this is the set that
  7. # will be evaluated after each training iteration. If you wish to test
  8. # on the final (held-out) test set, change 'val' to 'test'.
  9. type=my_first_model
  10. dataset_name=my_dataset
  11. data_dir=data/${dataset_name}
  12. data=${data_dir}/${dataset_name}
  13. test_data=${data_dir}/${dataset_name}.test.c2v
  14. model_dir=models/${type}
  15. data_path=/home/kirill/code2seq/my_additions/data/my_dataset
  16. mkdir -p models/${model_dir}
  17. set -e
  18. python3 -u code2vec.py --framework keras --data ${data} --test ${test_data} --save ${model_dir}/saved_model
  19. #python3 -u code2vec.py --framework keras --load models/my_first_model/saved_model --test ${test_data}
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...