aa7322f6057dce6424af3f2245e4c45bd33af05e,scripts/speaker_embedding.py,,speaker_recognition_xp,#Any#Any#Any#Any#Any#,278

Before Change


    key_mapping = {0: None, -1: 0, 1: 1}
    for i, _ in enumerate(keys.index):
        for j, _ in enumerate(keys):
            y = key_mapping[keys.iloc[i, j]]
            if y is None:
                continue

            y_true.append(y)
            y_pred.append(D[i, j])

    y_true = np.array(y_true)

After Change


    n_positive = positive.shape[0]
    n_negative = negative.shape[0]
    // n_untested = untested.shape[0]
    y_true = np.hstack([np.ones(n_positive,), np.zeros(n_negative)])

    return det_curve(y_true, y_pred, distances=True)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pyannote/pyannote-audio
Commit Name: aa7322f6057dce6424af3f2245e4c45bd33af05e
Time: 2017-01-11
Author: bredin@limsi.fr
File Name: scripts/speaker_embedding.py
Class Name:
Method Name: speaker_recognition_xp


Project Name: reinforceio/tensorforce
Commit Name: 6d5623b632166e67ef7dff441df5432d06b05e8d
Time: 2016-11-20
Author: k@ifricke.com
File Name: tensorforce/replay_memories/replay_memory.py
Class Name: ReplayMemory
Method Name: sample_batch


Project Name: scikit-image/scikit-image
Commit Name: 9795e24cb5b3b7ffed0ca959a0986b28366908a9
Time: 2017-09-12
Author: peter@goldsborough.me
File Name: skimage/data/generate_shapes.py
Class Name:
Method Name: generate_shapes