forked from alibaba/FederatedScope
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] add backdoor attack (alibaba#267)
* add backdoor attack Co-authored-by: Alan-Qin <[email protected]> Co-authored-by: Osier-Yi <[email protected]>
- Loading branch information
1 parent
0936751
commit b2520dd
Showing
18 changed files
with
1,776 additions
and
9 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
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 |
---|---|---|
@@ -1,10 +1,16 @@ | ||
from federatedscope.attack.auxiliary.utils import * | ||
from federatedscope.attack.auxiliary.attack_trainer_builder import \ | ||
wrap_attacker_trainer | ||
from federatedscope.attack.auxiliary.attack_trainer_builder \ | ||
import wrap_attacker_trainer | ||
from federatedscope.attack.auxiliary.backdoor_utils import * | ||
from federatedscope.attack.auxiliary.poisoning_data import * | ||
from federatedscope.attack.auxiliary.create_edgeset import * | ||
|
||
__all__ = [ | ||
'get_passive_PIA_auxiliary_dataset', 'iDLG_trick', 'cos_sim', | ||
'get_classifier', 'get_data_info', 'get_data_sav_fn', 'get_info_diff_loss', | ||
'sav_femnist_image', 'get_reconstructor', 'get_generator', | ||
'get_data_property', 'get_passive_PIA_auxiliary_dataset' | ||
'get_data_property', 'get_passive_PIA_auxiliary_dataset', | ||
'load_poisoned_dataset_edgeset', 'load_poisoned_dataset_pixel', | ||
'selectTrigger', 'poisoning', 'create_ardis_poisoned_dataset', | ||
'create_ardis_poisoned_dataset', 'create_ardis_test_dataset' | ||
] |
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
Oops, something went wrong.