-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbenchmark.sh
44 lines (33 loc) · 1.45 KB
/
benchmark.sh
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
35
36
37
38
39
40
41
42
43
# BiGRU.py NeuroFetalNet.py NeuroFetalNet_without_pe.py
# BiLSTM.py NeuroFetalNet_without_ca.py ResNet_BiGRU.py
# GRU.py NeuroFetalNet_without_fusion_3.py ResNet.py
# LSTM.py NeuroFetalNet_without_fusion_9.py
# # basic config
# parser.add_argument(
# "--model", type=str, required=True, default="MyNet_4", help="model name"
# )
# # gpu
# parser.add_argument("--use_gpu", type=bool, default=True, help="use gpu or not")
# parser.add_argument("--gpu", type=str, default="0", help="gpu id")
# # train
# parser.add_argument("--batch_size", type=int, default=16, help="batch size")
# parser.add_argument("--num_epochs", type=int, default=200, help="number of epochs")
# parser.add_argument("--patience", type=int, default=20, help="patience")
# # model
# parser.add_argument("--num_classes", type=int, default=2, help="number of classes")
# parser.add_argument("--in_channels", type=int, default=1, help="number of channels")
# parser.add_argument("--seq_len", type=int, default=4800, help="sequence length")
# args = parser.parse_args()
export CUDA_VISIBLE_DEVICES=0
python -u run_transformer.py \
--model TimesNet \
--input_feature fhr \
--enc_in 1
python -u run_transformer.py \
--model Nonstationary_Transformer \
--input_feature fhr \
--enc_in 1
python -u run_transformer.py \
--model Informer \
--input_feature fhr \
--enc_in 1