Created
April 7, 2020 12:11
-
-
Save mihirkhandekar/661616d21a7408d4ef9a2a5aee48bca2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# `saved_path` is required for obtaining the training data that was used to | |
# train the target classification model, in "npy" format | |
saved_path = "datasets/purchase100.txt.npy" | |
# Similar to `saved_path` being used to form the memberset for attack model, | |
# `dataset_path` is used for forming the non-member set of the training data of | |
# attack model. | |
dataset_path = 'datasets/purchase100.txt' | |
datahandlerA = ml_privacy_meter.utils.attack_data.attack_data(dataset_path=dataset_path, | |
member_dataset_path=saved_path, | |
batch_size=64, | |
attack_percentage=50) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment