7c537572503ad61a9f09ac0a3d2e71833e5d09a9,tensorflow_privacy/privacy/membership_inference_attack/keras_evaluation_example.py,,main,#Any#,78

Before Change



def main(unused_argv):
  // Load training and test data.
  train_data, train_labels, test_data, test_labels = load_mnist()

  // Get model, optimizer and specify loss.
  model = cnn_model()
  optimizer = GradientDescentOptimizer(learning_rate=FLAGS.learning_rate)

After Change


      ])
  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)]))

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: 10335f61775faabe5e931f30b0ecf91f0719b727
Time: 2020-05-07
Author: schien@google.com
File Name: tutorials/mnist_dpsgd_tutorial.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_example.py
Class Name:
Method Name: main