298178ce60c17dce5044964e2221461b94f499a4,tests/attacks/inference/test_membership_inference.py,,test_black_box_with_model,#Any#Any#,292

Before Change



    (x_train, y_train), (x_test, y_test) = get_iris_dataset
    attack_train_size = int(len(x_train) * attack_train_ratio)
    attack_test_size = int(len(x_test) * attack_train_ratio)

    model = AttackModel(2 * num_classes_iris)

    // Define a loss function and optimizer

After Change


    for classifier in classifier_list:
        print(type(classifier).__name__)
        attack = MembershipInferenceBlackBox(classifier, attack_model=attack_model)
        backend_check_membership_accuracy(attack, get_iris_dataset, attack_train_ratio, 0.03)


def test_errors(get_tabular_classifier_list, get_iris_dataset):
    classifier_list = get_tabular_classifier_list(MembershipInferenceBlackBox)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 298178ce60c17dce5044964e2221461b94f499a4
Time: 2020-08-25
Author: abigailt@il.ibm.com
File Name: tests/attacks/inference/test_membership_inference.py
Class Name:
Method Name: test_black_box_with_model


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 298178ce60c17dce5044964e2221461b94f499a4
Time: 2020-08-25
Author: abigailt@il.ibm.com
File Name: tests/attacks/inference/test_membership_inference.py
Class Name:
Method Name: test_black_box_tabular_rf


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 298178ce60c17dce5044964e2221461b94f499a4
Time: 2020-08-25
Author: abigailt@il.ibm.com
File Name: tests/attacks/inference/test_membership_inference.py
Class Name:
Method Name: test_black_box_tabular_gb


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 298178ce60c17dce5044964e2221461b94f499a4
Time: 2020-08-25
Author: abigailt@il.ibm.com
File Name: tests/attacks/inference/test_membership_inference.py
Class Name:
Method Name: test_black_box_image