Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Text Attacks
Manage
Activity
Members
Plan
Wiki
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adversarial Attacks
Text Attacks
Commits
59c763a0
Commit
59c763a0
authored
Mar 24, 2023
by
pwalkow
Browse files
Options
Downloads
Patches
Plain Diff
Update dvc.lock
parent
4dbf58aa
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
dvc.lock
+3
-3
3 additions, 3 deletions
dvc.lock
experiments/scripts/attack.py
+1
-1
1 addition, 1 deletion
experiments/scripts/attack.py
with
4 additions
and
4 deletions
dvc.lock
+
3
−
3
View file @
59c763a0
...
@@ -236,9 +236,9 @@ stages:
...
@@ -236,9 +236,9 @@ stages:
size: 4617
size: 4617
outs:
outs:
- path: data/explanations/20_news/
- path: data/explanations/20_news/
md5:
c8ba90f9757a4e3cc4843d3791ef2446
.dir
md5:
ad1f9f0df287078edebed1e408df2c9f
.dir
size:
232912969
size:
869336544
nfiles: 14041
nfiles: 1404
0
1
attack_basic@wiki_pl:
attack_basic@wiki_pl:
cmd: PYTHONPATH=. python experiments/scripts/attack.py --dataset_name wiki_pl
cmd: PYTHONPATH=. python experiments/scripts/attack.py --dataset_name wiki_pl
--attack_type attack_basic
--attack_type attack_basic
...
...
This diff is collapsed.
Click to expand it.
experiments/scripts/attack.py
+
1
−
1
View file @
59c763a0
...
@@ -152,7 +152,7 @@ def load_dir_files(dir_path):
...
@@ -152,7 +152,7 @@ def load_dir_files(dir_path):
def
load_xai_importance
(
input_dir
):
def
load_xai_importance
(
input_dir
):
global_xai_dir
=
os
.
path
.
join
(
input_dir
,
"
global
"
)
global_xai_dir
=
os
.
path
.
join
(
input_dir
,
"
global
"
)
local_xai_dir
=
os
.
path
.
join
(
input_dir
,
"
local
"
)
local_xai_dir
=
os
.
path
.
join
(
input_dir
,
"
local
"
,
"
test
"
)
local_dirs
=
os
.
listdir
(
local_xai_dir
)
local_dirs
=
os
.
listdir
(
local_xai_dir
)
local_class_to_file
=
{
dir_name
:
load_dir_files
(
os
.
path
.
join
(
local_xai_dir
,
dir_name
))
local_class_to_file
=
{
dir_name
:
load_dir_files
(
os
.
path
.
join
(
local_xai_dir
,
dir_name
))
for
dir_name
in
local_dirs
}
for
dir_name
in
local_dirs
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment