eab3c82cabf192154e6f4e9d16615885c7eefc14,art/metrics/privacy/membership_leakage.py,,PDTP,#Any#Any#Any#Any#Any#Any#,36

Before Change


                    "PDTP metric only supports classifiers that output logits or probabilities."
                )
        // divide into 100 bins and return center of bin
        pred_bin = (np.floor(pred * 100) / 100).round(decimals=2) + 0.005
        pred_bin[pred_bin > 1] = 0.995

        if not indexes:
            indexes = range(x.shape[0])

After Change


                    "PDTP metric only supports classifiers that output logits or probabilities."
                )
        // divide into 100 bins and return center of bin
        bins = np.array(np.arange(0.0, 1.01, 0.01).round(decimals=2))
        pred_bin_indexes = np.digitize(pred, bins)
        pred_bin = bins[pred_bin_indexes] - 0.005

        if not indexes:
            indexes = range(x.shape[0])
        for row in indexes:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: eab3c82cabf192154e6f4e9d16615885c7eefc14
Time: 2021-01-28
Author: abigailt@il.ibm.com
File Name: art/metrics/privacy/membership_leakage.py
Class Name:
Method Name: PDTP


Project Name: Microsoft/nni
Commit Name: afb4e78c5c9c4782482777fd8587c636711ab2e5
Time: 2019-08-04
Author: suiguoxin@gmail.com
File Name: src/sdk/pynni/nni/gridsearch_tuner/gridsearch_tuner.py
Class Name: GridSearchTuner
Method Name: _parse_quniform


Project Name: tensorflow/magenta
Commit Name: 422678c8bf45574bb7c8a87ba434c455f9f7b877
Time: 2018-07-26
Author: iansimon@users.noreply.github.com
File Name: magenta/music/chord_inference.py
Class Name:
Method Name: sequence_note_pitch_vectors