-
Notifications
You must be signed in to change notification settings - Fork 5
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 #168 from aidotse/report_handler
Report handler
- Loading branch information
Showing
44 changed files
with
2,736 additions
and
234 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
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
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,51 @@ | ||
audit: # Configurations for auditing | ||
random_seed: 1234 # Integer specifying the random seed | ||
attack_list: | ||
rmia: | ||
training_data_fraction: 0.5 # Fraction of the auxilary dataset to use for this attack (in each shadow model training) | ||
attack_data_fraction: 0.5 # Fraction of auxiliary dataset to sample from during attack | ||
num_shadow_models: 3 # Number of shadow models to train | ||
online: True # perform online or offline attack | ||
temperature: 2 | ||
gamma: 2.0 | ||
offline_a: 0.33 # parameter from which we compute p(x) from p_OUT(x) such that p_IN(x) = a p_OUT(x) + b. | ||
offline_b: 0.66 | ||
population: | ||
attack_data_fraction: 1.0 # Fraction of the auxilary dataset to use for this attack | ||
lira: | ||
training_data_fraction: 0.5 # Fraction of the auxilary dataset to use for this attack (in each shadow model training) | ||
num_shadow_models: 3 # Number of shadow models to train | ||
online: True # perform online or offline attack | ||
loss_traj: | ||
training_distill_data_fraction : 0.7 # Fraction of the auxilary dataset to use for training the distillation models D_s = (1-D_KD)/2 | ||
number_of_traj: 10 # Number of epochs (number of points in the loss trajectory) | ||
label_only: False # True or False | ||
mia_classifier_epochs: 100 | ||
HSJ: | ||
attack_data_fraction: 0.01 # Fraction of the auxilary dataset to use for this attack | ||
target_metadata_path: "./target/model_metadata.pkl" | ||
num_iterations: 2 # Number of iterations for the optimization | ||
initial_num_evals: 100 # Number of evaluations for number of random vecotr to estimate the gradient | ||
max_num_evals: 10000 # Maximum number of evaluations | ||
stepsize_search: "geometric_progression" # Step size search method | ||
gamma: 1.0 # Gamma for the optimization | ||
constraint: 2 | ||
batch_size: 50 | ||
verbose: True | ||
epsilon_threshold: 1e-6 | ||
|
||
output_dir: "./leakpro_output" | ||
attack_type: "mia" #mia, gia | ||
modality: "image" #image, tabular | ||
|
||
target: | ||
# Target model path | ||
module_path: "./mia_utils/utils/cifar_model_preparation.py" | ||
model_class: "ResNet18" | ||
# Data paths | ||
target_folder: "./target" | ||
data_path: "./data/cifar10.pkl" | ||
|
||
shadow_model: | ||
|
||
distillation_model: |
Oops, something went wrong.