2007aac912faadbf0ae3af206f3fa100284b8e23,tensorflow_privacy/privacy/analysis/compute_dp_sgd_privacy.py,,main,#Any#,83

Before Change


    raise app.UsageError("N must be larger than the batch size.")
  orders = ([1.25, 1.5, 1.75, 2., 2.25, 2.5, 3., 3.5, 4., 4.5] +
            list(range(5, 64)) + [128, 256, 512])
  steps = int(math.ceil(FLAGS.epochs * FLAGS.N / FLAGS.batch_size))

  apply_dp_sgd_analysis(q, FLAGS.noise_multiplier, steps, orders, FLAGS.delta)

After Change


  assert FLAGS.N is not None, "Flag N is missing."
  assert FLAGS.batch_size is not None, "Flag batch_size is missing."
  assert FLAGS.noise_multiplier is not None, "Flag noise_multiplier is missing."
  assert FLAGS.epochs is not None, "Flag epochs is missing."
  compute_dp_sgd_privacy(FLAGS.N, FLAGS.batch_size, FLAGS.noise_multiplier,
                         FLAGS.epochs, FLAGS.delta)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorflow/privacy
Commit Name: 2007aac912faadbf0ae3af206f3fa100284b8e23
Time: 2019-10-21
Author: schien@google.com
File Name: tensorflow_privacy/privacy/analysis/compute_dp_sgd_privacy.py
Class Name:
Method Name: main


Project Name: lanpa/tensorboardX
Commit Name: 3e87c9fa4d0c0f181734e0a053e8cd41b0849717
Time: 2019-08-21
Author: huang.dexter@gmail.com
File Name: tensorboardX/embedding.py
Class Name:
Method Name: make_sprite


Project Name: keras-team/keras
Commit Name: 45714e343f36292cec938dc01ebb8a2dec10cea4
Time: 2016-01-19
Author: francois.chollet@gmail.com
File Name: keras/preprocessing/image.py
Class Name: ImageDataGenerator
Method Name: flow