3908429796a3d7fb7615f45592bb1a1fbf3f0e1a,privacy/dp_query/normalized_query.py,NormalizedQuery,initial_global_state,#NormalizedQuery#,49

Before Change


  def initial_global_state(self):
    See base class.
    // NormalizedQuery has no global state beyond the numerator state.
    return self._numerator.initial_global_state()

  def derive_sample_params(self, global_state):
    See base class.
    return self._numerator.derive_sample_params(global_state)

After Change


      denominator = tf.cast(self._denominator, tf.float32)
    else:
      denominator = None
    return self._GlobalState(
        self._numerator.initial_global_state(), denominator)

  def derive_sample_params(self, global_state):
    See base class.
    return self._numerator.derive_sample_params(global_state.numerator_state)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/privacy
Commit Name: 3908429796a3d7fb7615f45592bb1a1fbf3f0e1a
Time: 2019-05-15
Author: galenandrew@google.com
File Name: privacy/dp_query/normalized_query.py
Class Name: NormalizedQuery
Method Name: initial_global_state


Project Name: tensorflow/privacy
Commit Name: 3908429796a3d7fb7615f45592bb1a1fbf3f0e1a
Time: 2019-05-15
Author: galenandrew@google.com
File Name: privacy/dp_query/quantile_adaptive_clip_sum_query.py
Class Name: QuantileAdaptiveClipSumQuery
Method Name: initial_global_state


Project Name: tensorflow/privacy
Commit Name: cec011e2a797a32a9b102a69d2d799256de7ca98
Time: 2020-06-08
Author: galenandrew@google.com
File Name: tensorflow_privacy/privacy/dp_query/quantile_adaptive_clip_sum_query.py
Class Name: QuantileAdaptiveClipSumQuery
Method Name: initial_global_state