-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrun.sh
More file actions
21 lines (17 loc) · 950 Bytes
/
run.sh
File metadata and controls
21 lines (17 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
set -e
# Running Example
CUDA_VISIBLE_DEVICES='1,2,3' python3 -u run_classification.py \
--pretrained_model_path ./models/pre_trained_model_scibert/output_model.bin \
--config_path ./models/pre_trained_model_scibert/scibert_scivocab_uncased/config.json \
--vocab_path ./models/pre_trained_model_scibert/scibert_scivocab_uncased/vocab.txt \
--train_path ./datasets/ddi_corpus/train.tsv \
--dev_path ./datasets/ddi_corpus/dev.tsv \
--test_path ./datasets/ddi_corpus/test.tsv \
--class_weights True \
--weights "[0.234, 3.377, 4.234, 6.535, 24.613]" \
--epochs_num 30 --batch_size 32 --kg_name "['ChEBI']" \
--output_model_path ./outputs/scibert_ddi.bin \
| tee ./outputs/scibert_ddi.log &
# --kg_name is a list of knowledge graphs names, e.g. ['GO','HPO'], ['ChEBI','DOID'] and ['ChEBI']
# define --weights if --class_weights True | Recommended PGR: [4.89, 0.56], BC5CDR: [0.82, 1.25]