-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from matthewsedam/add-dp-readme
Add DP Tests README
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Data Poisoning Tests | ||
|
||
This README is designed to give a quick overview about data poisoning (DP) | ||
adversaries, learners, and tests in the `adlib` library. The available | ||
DP adversaries are `label-flipping`, `k-insertion`, `data-modification`, and | ||
`data-transform`. The available DP learners are `trim`, `atrim`, `irl`, and | ||
`orl`. There is a testing suite defined in | ||
`adlib/tests/learners/dp_learner_test.py`. In this file, the class | ||
`TestDataPoisoningLearner` is used to provide a contained testing environment | ||
that targets by default a ~20% poisoning percentage. To see usage, see the | ||
aforementioned file. If you want to run many tests of all learners with a | ||
specified attacker, you should use | ||
`adlib/tests/learners/dp_learner_many_test.py`. For example, to run 50 | ||
`label-flipping` attacks and get detailed output of how every learner performs, | ||
do `python3 adlib/tests/learners/dp_learner_many_test.py 50 label-flipping`. | ||
This will output 50 files with the resulting tests in verbose mode. |