bb1de9e2b0efaf35b4b537ca9dfce9e96f30cf96,mir_eval/hierarchy.py,,_gauc,#Any#Any#Any#Any#,146

Before Change



        // Add up agreement for frames
        if normalizer > 0:
            score += np.sum(np.logical_and(ref_rank, est_rank)) / normalizer
            num_frames += 1

    // Normalize by the number of frames counted.
    // If no frames are counted, take the convention 0/0 -> 0

After Change


        // (this also holds when the slice goes off the end of the array.)
        idx = min(query, window)

        ref_score = np.concatenate((ref_score[:idx], ref_score[idx+1:]))
        est_score = np.concatenate((est_score[:idx], est_score[idx+1:]))

        inversions, normalizer = _compare_frame_rankings(ref_score, est_score,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: craffel/mir_eval
Commit Name: bb1de9e2b0efaf35b4b537ca9dfce9e96f30cf96
Time: 2017-08-18
Author: bmcfee@users.noreply.github.com
File Name: mir_eval/hierarchy.py
Class Name:
Method Name: _gauc


Project Name: matplotlib/matplotlib
Commit Name: 128ee1764695201aed1ce43cbfe2a856489c705e
Time: 2019-02-17
Author: anntzer.lee@gmail.com
File Name: examples/images_contours_and_fields/specgram_demo.py
Class Name:
Method Name:


Project Name: bethgelab/foolbox
Commit Name: 80cfb0e5f889c65a972ebde6c6dae4278b5e28c1
Time: 2020-02-14
Author: git@jonasrauber.de
File Name: foolbox/attacks/base.py
Class Name: MinimizationAttack
Method Name: __call__