-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtweets_try_lime_sample_sizes.sh
48 lines (41 loc) · 1.69 KB
/
tweets_try_lime_sample_sizes.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
44
45
46
47
48
#!/bin/sh
# In the case of line ending problems (Windows vs. UNIX encodings), run:
# sed -i 's/\r$//' tweets.sh
# # python3 get_tweets.py
# python3 tweet_cleanup.py
# python3 extract_features.py tweets models/tweets-z --lower
# screen -dmS tweets1000-0
# screen -S tweets1000-0 -X stuff "python3 feature_correlation.py models/tweets-z
# "
# screen -S tweets1000-0 -X stuff "python3 prepare_folds.py models/tweets-z 10
# "
# screen -S tweets1000-0 -X stuff "python3 predict_fold.py models/tweets-z tweets 0 --save --z 1000 --out '1000-0'
# "
# for i in $(seq 1 9); do
# echo "Setting up fold 1000-$i"
# screen -dmS tweets1000-$i
# screen -S tweets1000-$i -X stuff "python3 predict_fold.py models/tweets-z tweets 0 --load --z 1000 --out '1000-$i'
# "
# done
# for i in $(seq 0 9); do
# echo "Setting up fold $i"
# screen -dmS tweets$i
# # screen -S tweets$i -X stuff "python3 predict_fold.py models/tweets-z tweets 0 --load --z 3000 --out '3000-$i'
# # "
# screen -S tweets$i -X stuff "python3 predict_fold.py models/tweets-z tweets 0 --load --z 5000 --out '5000-$i'
# "
# done
# for i in $(seq 0 9); do
# echo "Setting up fold $i"
# screen -S tweets$i -X stuff "python3 predict_fold.py models/tweets-z tweets 0 --load --z 10 --out '10-$i'
# "
# screen -S tweets$i -X stuff "python3 predict_fold.py models/tweets-z tweets 0 --load --z 100 --out '100-$i'
# "
# screen -S tweets$i -X stuff "python3 predict_fold.py models/tweets-z tweets 0 --load --z 500 --out '500-$i'
# "
# done
for i in $(seq 0 9); do
echo "Setting up fold $i"
screen -dmS tweets$i
screen -S tweets$i -X stuff "python3 predict_fold.py models/tweets-z tweets 0 --load --z 2500 --out '2500-$i'\n"
done