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

run_re_10cv.sh 833 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
23
24
25
26
27
28
29
30
31
32
33
34
  1. export SAVE_DIR=./output
  2. export DATA="euadr"
  3. export MAX_LENGTH=128
  4. export BATCH_SIZE=32
  5. export NUM_EPOCHS=3
  6. export SAVE_STEPS=1000
  7. export SEED=1
  8. for SPLIT in {1..10}
  9. do
  10. DATA_DIR=../datasets/RE/${DATA}/${SPLIT}
  11. ENTITY=${DATA}-${SPLIT}
  12. echo "***** " $DATA " train-eval " $SPLIT " Start *****"
  13. python run_re.py \
  14. --task_name SST-2 \
  15. --config_name bert-base-cased \
  16. --data_dir ${DATA_DIR} \
  17. --model_name_or_path dmis-lab/biobert-base-cased-v1.1 \
  18. --max_seq_length ${MAX_LENGTH} \
  19. --num_train_epochs ${NUM_EPOCHS} \
  20. --per_device_train_batch_size ${BATCH_SIZE} \
  21. --save_steps ${SAVE_STEPS} \
  22. --seed ${SEED} \
  23. --do_train \
  24. --do_predict \
  25. --learning_rate 5e-5 \
  26. --output_dir ${SAVE_DIR}/${ENTITY} \
  27. --overwrite_output_dir
  28. done
  29. echo "***** " $DATA " train-eval Done *****"
Tip!

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

Comments

Loading...