f90c78bd5444f77936566e9a67d9a7513fd3be48,tensorflow_privacy/privacy/membership_inference_attack/tf_estimator_evaluation_test.py,UtilsTest,test_run_attack_helper,#UtilsTest#,78
Before Change
self.test_labels,
[])
self.assertIsInstance(results, dict)
self.assertIn("all_thresh_loss_auc", results)
self.assertIn("all_thresh_loss_advantage", results)
def test_run_attack_on_tf_estimator_model(self):
Test the attack on the final models.
After Change
self.input_fn_test,
self.train_labels,
self.test_labels,
attack_types=[AttackType.THRESHOLD_ATTACK] )
self.assertIsInstance(results, AttackResults)
attack_properties, attack_values = get_all_attack_results(results)
self.assertLen(attack_properties, 2)
self.assertLen(attack_values, 2)
def test_run_attack_on_tf_estimator_model(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: tensorflow/privacy
Commit Name: f90c78bd5444f77936566e9a67d9a7513fd3be48
Time: 2020-08-24
Author: shuangsong@google.com
File Name: tensorflow_privacy/privacy/membership_inference_attack/tf_estimator_evaluation_test.py
Class Name: UtilsTest
Method Name: test_run_attack_helper
Project Name: tensorflow/privacy
Commit Name: f90c78bd5444f77936566e9a67d9a7513fd3be48
Time: 2020-08-24
Author: shuangsong@google.com
File Name: tensorflow_privacy/privacy/membership_inference_attack/tf_estimator_evaluation_test.py
Class Name: UtilsTest
Method Name: test_run_attack_on_tf_estimator_model
Project Name: tensorflow/privacy
Commit Name: f90c78bd5444f77936566e9a67d9a7513fd3be48
Time: 2020-08-24
Author: shuangsong@google.com
File Name: tensorflow_privacy/privacy/membership_inference_attack/keras_evaluation_test.py
Class Name: UtilsTest
Method Name: test_run_attack_on_keras_model