Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.

move results; write exp. results to subdirectories #49

Merged
merged 1 commit into from
May 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ DATASETS := DS_1 DS_2
query:
@$(foreach i, $(LIMIT), $(foreach c, $(CLS), $(foreach r, $(ROBUST), \
$(foreach attack, $(ATTACKS), $(foreach ds, $(DATASETS), \
python3 -m src experiment $(ALWAYS) -a $(attack) $($(ds)) $($(r)) --iter $(i) -c $(c) ; )))))
python3 -m src experiment $(ALWAYS) --out output/query -a $(attack) $($(ds)) $($(r)) \
--iter $(i) -c $(c) ; )))))

sample:
@$(foreach c, $(CLS), $(foreach r, $(ROBUST), $(foreach attack, $(ATTACKS), \
python3 -m src experiment $(ALWAYS) -a $(attack) $(DS_2) $($(r)) \
python3 -m src experiment $(ALWAYS) --out output/sample -a $(attack) $(DS_2) $($(r)) \
--iter 0 -s $(SAMPLE) -t $(TIMES) -c $(c) ; )))

valid:
Expand All @@ -56,6 +57,9 @@ valid:
plot:
@python3 -m src plot $(RESDIR)

plot_result:
@python3 -m src plot output/query && python3 -m src plot output/sample

stats:
@cd src && find . -name '*.py' | xargs wc -l && cd ..

Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ meaning attack's default limit is used.
:eight_pointed_black_star: **Plot results** < 1 min

```
make plot
make plot_result
```

Plot results of a previously performed experiment. The plot data source defaults to `output` directory.
To plot some other directory append `RESDIR` to the command, e.g. `make plot RESDIR=result/all`.
To plot some other directory, use command: `make plot RESDIR=result/query` where `RESDIR` is path to some directory with experiment results.

## Run Custom Experiments

Expand Down
4 changes: 2 additions & 2 deletions result/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

This directory contains results of experiments presented in the paper.

- `query-limited` directory contains experiment results on different attack iterations.
- `sampled` directory contains experiment results on limited size, sampled input.
- `query` directory contains experiment results on different attack iterations.
- `sample` directory contains experiment results on limited size, sampled input.