forked from 1075793472/AFTGAN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.py
46 lines (39 loc) · 1.56 KB
/
run.py
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
44
45
46
import os
def run_func(description, ppi_path, pseq_path, vec_path,
split_new, split_mode, train_valid_index_path,
use_lr_scheduler, save_path, graph_only_train,
batch_size, epochs):
os.system("python -u gnn_train.py \
--description={} \
--ppi_path={} \
--pseq_path={} \
--vec_path={} \
--split_new={} \
--split_mode={} \
--train_valid_index_path={} \
--use_lr_scheduler={} \
--save_path={} \
--graph_only_train={} \
--batch_size={} \
--epochs={} \
".format(description, ppi_path, pseq_path, vec_path,
split_new, split_mode, train_valid_index_path,
use_lr_scheduler, save_path, graph_only_train,
batch_size, epochs))
if __name__ == "__main__":
description = "test_string_bfs"
ppi_path = "./data/9606.protein.actions.all_connected.txt"
pseq_path = "./data/protein.STRING_all_connected.sequences.dictionary.tsv"
vec_path = "./data/vec5_CTC.txt"
split_new = "False"
split_mode = "bfs"
train_valid_index_path = "./new_train_valid_index_json/string.bfs.fold1.json"
use_lr_scheduler = "True"
save_path = "./save_model/"
graph_only_train = "False"
batch_size = 2048
epochs = 300
run_func(description, ppi_path, pseq_path, vec_path,
split_new, split_mode, train_valid_index_path,
use_lr_scheduler, save_path, graph_only_train,
batch_size, epochs)