380582db9d44bc6fffa6726d88010cbc994fc550,mir_eval/chord.py,,thirds,#Any#Any#,697

Before Change



    eq_roots = ref_roots == est_roots
    eq_thirds = ref_semitones[:, 3] == est_semitones[:, 3]
    return (eq_roots * eq_thirds).astype(np.float)


def thirds_inv(reference_labels, estimated_labels):
    """Score chords along root, third, & bass relationships.

After Change



    eq_roots = ref_roots == est_roots
    eq_thirds = ref_semitones[:, 3] == est_semitones[:, 3]
    comparison_scores = (eq_roots * eq_thirds).astype(np.float)

    // Ignore "X" chords
    comparison_scores[np.any(ref_semitones < 0, axis=1)] = -1.0
    return comparison_scores


def thirds_inv(reference_labels, estimated_labels):
    """Score chords along root, third, & bass relationships.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 10

Instances


Project Name: craffel/mir_eval
Commit Name: 380582db9d44bc6fffa6726d88010cbc994fc550
Time: 2014-11-24
Author: ejhumphrey@nyu.edu
File Name: mir_eval/chord.py
Class Name:
Method Name: thirds


Project Name: craffel/mir_eval
Commit Name: 380582db9d44bc6fffa6726d88010cbc994fc550
Time: 2014-11-24
Author: ejhumphrey@nyu.edu
File Name: mir_eval/chord.py
Class Name:
Method Name: tetrads


Project Name: craffel/mir_eval
Commit Name: 380582db9d44bc6fffa6726d88010cbc994fc550
Time: 2014-11-24
Author: ejhumphrey@nyu.edu
File Name: mir_eval/chord.py
Class Name:
Method Name: tetrads_inv


Project Name: craffel/mir_eval
Commit Name: 380582db9d44bc6fffa6726d88010cbc994fc550
Time: 2014-11-24
Author: ejhumphrey@nyu.edu
File Name: mir_eval/chord.py
Class Name:
Method Name: triads


Project Name: craffel/mir_eval
Commit Name: 380582db9d44bc6fffa6726d88010cbc994fc550
Time: 2014-11-24
Author: ejhumphrey@nyu.edu
File Name: mir_eval/chord.py
Class Name:
Method Name: thirds_inv


Project Name: craffel/mir_eval
Commit Name: 380582db9d44bc6fffa6726d88010cbc994fc550
Time: 2014-11-24
Author: ejhumphrey@nyu.edu
File Name: mir_eval/chord.py
Class Name:
Method Name: root


Project Name: craffel/mir_eval
Commit Name: 380582db9d44bc6fffa6726d88010cbc994fc550
Time: 2014-11-24
Author: ejhumphrey@nyu.edu
File Name: mir_eval/chord.py
Class Name:
Method Name: mirex


Project Name: craffel/mir_eval
Commit Name: 380582db9d44bc6fffa6726d88010cbc994fc550
Time: 2014-11-24
Author: ejhumphrey@nyu.edu
File Name: mir_eval/chord.py
Class Name:
Method Name: triads_inv