298178ce60c17dce5044964e2221461b94f499a4,tests/attacks/inference/test_membership_inference.py,,test_black_box_tabular_gb,#Any#Any#,255

Before Change


        // check accuracy
        train_pos = sum(inferred_train) / len(inferred_train)
        test_pos = sum(inferred_test) / len(inferred_test)
        assert (train_pos > test_pos or
                train_pos == pytest.approx(test_pos, abs=0.03) or
                test_pos == 1)


class AttackModel(nn.Module):
    def __init__(self, num_features):

After Change


    for classifier in classifier_list:
        attack = MembershipInferenceBlackBox(classifier, attack_model_type="gb")
        // train attack model using only attack_train_ratio of data
        backend_check_membership_accuracy(attack, get_iris_dataset, attack_train_ratio, 0.03)


class AttackModel(nn.Module):
    def __init__(self, num_features):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

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_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


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