a4d108f270830ddacb24a7caf339898564ca9d78,tensorflow_privacy/privacy/membership_inference_attack/membership_inference_attack.py,,_compute_privacy_risk_score,#Any#Any#,177

Before Change


  test_log_values = np.log(np.maximum(test_values, small_value))
  
  min_log_value = np.amin(np.concatenate((train_log_values, test_log_values)))
  max_log_value = np.amax(np.concatenate((train_log_values, test_log_values)))
  bins_hist = np.linspace(min_log_value, max_log_value, num_bins+1)
  
  train_hist, _ = np.histogram(train_log_values, bins=bins_hist)

After Change


  train_values = np.maximum(train_values, small_value)
  test_values = np.maximum(test_values, small_value)
  
  min_value = min(train_values.min(), test_values.min())
  max_value = max(train_values.max(), test_values.max())
  bins_hist = np.logspace(np.log10(min_value), np.log10(max_value), num_bins+1)
  
  train_hist, _ = np.histogram(train_values, bins=bins_hist)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/privacy
Commit Name: a4d108f270830ddacb24a7caf339898564ca9d78
Time: 2020-12-16
Author: liweisongpku@gmail.com
File Name: tensorflow_privacy/privacy/membership_inference_attack/membership_inference_attack.py
Class Name:
Method Name: _compute_privacy_risk_score


Project Name: freelunchtheorem/Conditional_Density_Estimation
Commit Name: 4f9f28da19466e18165feb5a3dab0e82f686b926
Time: 2019-01-13
Author: jonas.rothfuss@gmx.de
File Name: cde/density_estimator/LSCDE.py
Class Name: LSConditionalDensityEstimation
Method Name: _build_model


Project Name: balakg/posewarp-cvpr2018
Commit Name: f4d6d3ccb846d555ba7dd3cb7488f5f4e9f1f3b9
Time: 2017-07-27
Author: balakg@thousandeyes.csail.mit.edu
File Name: networks.py
Class Name:
Method Name: unet