@@ -41,7 +41,7 @@ def test_black_box_image(art_warning, get_default_mnist_subset, image_dl_estimat
4141 try :
4242 classifier = image_dl_estimator_for_attack (MembershipInferenceBlackBox )
4343 attack = MembershipInferenceBlackBox (classifier )
44- backend_check_membership_accuracy (attack , get_default_mnist_subset , attack_train_ratio , 0.03 )
44+ backend_check_membership_accuracy (attack , get_default_mnist_subset , attack_train_ratio , 0.25 )
4545 except ARTTestException as e :
4646 art_warning (e )
4747
@@ -51,7 +51,7 @@ def test_black_box_tabular(art_warning, model_type, tabular_dl_estimator_for_att
5151 try :
5252 classifier = tabular_dl_estimator_for_attack (MembershipInferenceBlackBox )
5353 attack = MembershipInferenceBlackBox (classifier , attack_model_type = model_type )
54- backend_check_membership_accuracy (attack , get_iris_dataset , attack_train_ratio , 0.08 )
54+ backend_check_membership_accuracy (attack , get_iris_dataset , attack_train_ratio , 0.25 )
5555 except ARTTestException as e :
5656 art_warning (e )
5757
@@ -83,7 +83,7 @@ def test_black_box_keras_loss(art_warning, get_iris_dataset):
8383
8484 classifier = KerasClassifier (model )
8585 attack = MembershipInferenceBlackBox (classifier , input_type = "loss" )
86- backend_check_membership_accuracy (attack , get_iris_dataset , attack_train_ratio , 0.15 )
86+ backend_check_membership_accuracy (attack , get_iris_dataset , attack_train_ratio , 0.25 )
8787
8888 model2 = keras .models .Sequential ()
8989 model2 .add (keras .layers .Dense (12 , input_dim = 4 , activation = "relu" ))
@@ -102,7 +102,7 @@ def test_black_box_tabular_rf(art_warning, tabular_dl_estimator_for_attack, get_
102102 try :
103103 classifier = tabular_dl_estimator_for_attack (MembershipInferenceBlackBox )
104104 attack = MembershipInferenceBlackBox (classifier , attack_model_type = "rf" )
105- backend_check_membership_accuracy (attack , get_iris_dataset , attack_train_ratio , 0.1 )
105+ backend_check_membership_accuracy (attack , get_iris_dataset , attack_train_ratio , 0.2 )
106106 except ARTTestException as e :
107107 art_warning (e )
108108
@@ -112,7 +112,7 @@ def test_black_box_tabular_gb(art_warning, tabular_dl_estimator_for_attack, get_
112112 classifier = tabular_dl_estimator_for_attack (MembershipInferenceBlackBox )
113113 attack = MembershipInferenceBlackBox (classifier , attack_model_type = "gb" )
114114 # train attack model using only attack_train_ratio of data
115- backend_check_membership_accuracy (attack , get_iris_dataset , attack_train_ratio , 0.05 )
115+ backend_check_membership_accuracy (attack , get_iris_dataset , attack_train_ratio , 0.15 )
116116 except ARTTestException as e :
117117 art_warning (e )
118118
@@ -124,7 +124,7 @@ def test_black_box_with_model(art_warning, tabular_dl_estimator_for_attack, esti
124124 attack_model = estimator_for_attack (num_features = 2 * num_classes_iris )
125125 print (type (attack_model ).__name__ )
126126 attack = MembershipInferenceBlackBox (classifier , attack_model = attack_model )
127- backend_check_membership_accuracy (attack , get_iris_dataset , attack_train_ratio , 0.03 )
127+ backend_check_membership_accuracy (attack , get_iris_dataset , attack_train_ratio , 0.15 )
128128 except ARTTestException as e :
129129 art_warning (e )
130130
0 commit comments