-
Notifications
You must be signed in to change notification settings - Fork 4
/
run_all_models.sh
30 lines (22 loc) · 1.15 KB
/
run_all_models.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
#!/bin/bash
# usage: ./run_all_models.sh
log_file=models.log
if [ -f "$log_file" ]; then
rm "$log_file"
fi
## I provide the result 'justify_persistent_link.log' so unnecessary to run this script, it takes about 2 hours to finish
# python justify_persistent_link.py >> "$log_file"
## I provide the result 'random_pearsonr.log', 'ephemeral_pearsonr.log', 'persistent_pearsonr.log',
## 'reciprocal_pearsonr.log', so unnecessary to run this script, it takes about 2 hours to finish
# python compute_linkage_pearsonr.py >> "$log_file"
python plot_fig11_profile_persistent_network.py >> "$log_file"
sleep 60
echo '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' >> "$log_file"
## I provide the result 'forecast_tracker_all.json' so unnecessary to run this script
# python forecast_next_week.py >> "$log_file"
python plot_fig4_basic_statistics.py >> "$log_file"
sleep 60
echo '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' >> "$log_file"
python plot_fig5_how_videos_connect.py >> "$log_file"
sleep 60
echo '+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++' >> "$log_file"