-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
41 lines (30 loc) · 934 Bytes
/
Makefile
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
#dataset = pubmed
#method = gcn
#task = classification
dataset = BlogCatalog ### can be ['BlogCatalog', 'Wikipedia', 'pubmed']
method = deepwalk ### can be ['deepwalk', 'AROPE', 'gcn']
task = link_predict ### can be ['link_predict', 'classification']
ms = mle ### can be ['mle', 'random_search', 'b_opt']
ms_name = $(shell echo $(ms) | sed "s/ /_/g")
#log_file = logs/l_$(dataset)_$(method)_$(task).log
log_file = logs/l_$(dataset)_$(method)_$(task)_$(ms_name).log
log_pid = logs/pid_$(dataset)_$(method)_$(task)
sample:
python3 -u src/main.py $(dataset) sample $(task) $(ms)
run:
python3 -u src/main.py $(dataset) $(method) $(task) $(ms)
server_run:
nohup make run > $(log_file) 2>&1 & echo $$! > $(log_pid)
log:
tail $(log_file) -n 20
pid:
cat $(log_pid)
kill:
kill -9 `cat $(log_pid)`
check:
ps -ef | grep "python3 -u src/main.py"
test:
echo $(shell echo $(ms) | sed "s/ /_/g")
.PHONY: clean
clean:
rm */.*swp*