Newer
Older
do:
wdir: .
cmd: >-
PYTHONPATH=. python experiments/scripts/download_dataset.py
--dataset_name ${item}
--output_dir data/datasets/${item}
deps:
- experiments/scripts/download_dataset.py
outs:
- data/datasets/${item}/
do:
wdir: .
cmd: >-
PYTHONPATH=. python experiments/scripts/tag_dataset.py
--dataset_name ${item}
deps:
- experiments/scripts/tag_dataset.py
- data/datasets/${item}/
outs:
- data/preprocessed/${item}/
get_model:
foreach:
- enron_spam
do:
wdir: .
cmd: >-
PYTHONPATH=. python experiments/scripts/get_model.py
--dataset_name ${item}
--output_dir data/models/${item}
deps:
- experiments/scripts/get_model.py
outs:
- data/models/${item}/
classify:
foreach:
- enron_spam
do:
wdir: .
cmd: >-
PYTHONPATH=. python experiments/scripts/classify.py
--dataset_name ${item}
--output_dir data/classification/${item}
deps:
- experiments/scripts/classify.py
do:
wdir: .
cmd: >-
PYTHONPATH=. python experiments/scripts/explain.py
--dataset_name ${item}
--output_dir data/explanations/${item}
deps:
- experiments/scripts/explain.py
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
attack_textfooler:
foreach:
- enron_spam
- 20_news
- wiki_pl
do:
wdir: .
cmd: >-
PYTHONPATH=. python experiments/scripts/attack.py
--dataset_name ${item} --attack_type attack_textfooler
deps:
- experiments/scripts/attack.py
- data/models/${item}
- data/classification/${item}
outs:
- data/results/attack_textfooler/${item}/
attack_textfooler_discard:
foreach:
- enron_spam
- 20_news
- wiki_pl
do:
wdir: .
cmd: >-
PYTHONPATH=. python experiments/scripts/attack.py
--dataset_name ${item} --attack_type attack_textfooler_discard
deps:
- experiments/scripts/attack.py
- data/models/${item}
- data/classification/${item}
outs:
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
- data/results/attack_textfooler_discard/${item}/
attack_xai:
foreach:
- enron_spam
- 20_news
- wiki_pl
do:
wdir: .
cmd: >-
PYTHONPATH=. python experiments/scripts/attack.py
--dataset_name ${item} --attack_type attack_xai
deps:
- experiments/scripts/attack.py
- data/models/${item}
- data/classification/${item}
outs:
- data/results/attack_xai/${item}/
attack_xai_discard:
foreach:
- enron_spam
- 20_news
- wiki_pl
do:
wdir: .
cmd: >-
PYTHONPATH=. python experiments/scripts/attack.py
--dataset_name ${item} --attack_type attack_xai_discard
deps:
- experiments/scripts/attack.py
- data/models/${item}
- data/classification/${item}
outs:
- data/results/attack_xai_discard/${item}/
attack_xai_local:
foreach:
- enron_spam
- 20_news
- wiki_pl
do:
wdir: .
cmd: >-
PYTHONPATH=. python experiments/scripts/attack.py
--dataset_name ${item} --attack_type attack_xai_local
deps:
- experiments/scripts/attack.py
- data/models/${item}
- data/classification/${item}
outs:
- data/results/attack_xai_local/${item}/
attack_xai_discard_local:
foreach:
- enron_spam
- 20_news
- wiki_pl
do:
wdir: .
cmd: >-
PYTHONPATH=. python experiments/scripts/attack.py
--dataset_name ${item} --attack_type attack_xai_discard_local
deps:
- experiments/scripts/attack.py
- data/models/${item}
- data/classification/${item}
outs:
- data/results/attack_xai_discard_local/${item}/
do:
wdir: .
cmd: >-
PYTHONPATH=. python experiments/scripts/attack.py
deps:
- experiments/scripts/attack.py
- data/models/${item}