7c537572503ad61a9f09ac0a3d2e71833e5d09a9,tensorflow_privacy/privacy/membership_inference_attack/keras_evaluation_example.py,,main,#Any#,78
Before Change
AttackType.THRESHOLD_ATTACK, AttackType.K_NEAREST_NEIGHBORS
])
attack_properties, attack_values = get_flattened_attack_metrics(
attack_results)
print("\n".join([
" %s: %.4f" % (", ".join(p), r)
for p, r in zip(attack_properties, attack_values)
]))
if __name__ == "__main__":
After Change
attack_types=[
AttackType.THRESHOLD_ATTACK, AttackType.K_NEAREST_NEIGHBORS
])
att_types, att_slices, att_metrics, att_values = get_flattened_attack_metrics(
attack_results)
print("\n".join([" %s: %.4f" % (", ".join([s, t, m]), v) for t, s, m, v in
zip(att_types, att_slices, att_metrics, att_values)]))
if __name__ == "__main__":
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 20
Instances
Project Name: tensorflow/privacy
Commit Name: 7c537572503ad61a9f09ac0a3d2e71833e5d09a9
Time: 2020-09-22
Author: shuangsong@google.com
File Name: tensorflow_privacy/privacy/membership_inference_attack/keras_evaluation_example.py
Class Name:
Method Name: main
Project Name: tensorflow/privacy
Commit Name: 7c537572503ad61a9f09ac0a3d2e71833e5d09a9
Time: 2020-09-22
Author: shuangsong@google.com
File Name: tensorflow_privacy/privacy/membership_inference_attack/keras_evaluation_example.py
Class Name:
Method Name: main
Project Name: tensorflow/privacy
Commit Name: 7c537572503ad61a9f09ac0a3d2e71833e5d09a9
Time: 2020-09-22
Author: shuangsong@google.com
File Name: tensorflow_privacy/privacy/membership_inference_attack/tf_estimator_evaluation.py
Class Name: MembershipInferenceTrainingHook
Method Name: end
Project Name: tensorflow/privacy
Commit Name: 7c537572503ad61a9f09ac0a3d2e71833e5d09a9
Time: 2020-09-22
Author: shuangsong@google.com
File Name: tensorflow_privacy/privacy/membership_inference_attack/tf_estimator_evaluation_example.py
Class Name:
Method Name: main
Project Name: tensorflow/privacy
Commit Name: 7c537572503ad61a9f09ac0a3d2e71833e5d09a9
Time: 2020-09-22
Author: shuangsong@google.com
File Name: tensorflow_privacy/privacy/membership_inference_attack/keras_evaluation.py
Class Name: MembershipInferenceCallback
Method Name: on_epoch_end