0d78d2a33bb152be3ba5d49dad3433472b0cf9f1,mir_eval/boundary.py,,detection,#Any#Any#Any#Any#Any#,46

Before Change


    dist        = np.abs( np.subtract.outer(reference_boundaries, estimated_boundaries)) <= window

    // Precision: how many estimated intervals were hits?
    precision   = np.mean(dist.max(axis=0))

    // Recall: how many of the intervals did we catch?
    recall      = np.mean(dist.max(axis=1))

After Change


    // Precision = |matching| / |// predictions|
    // Recall    = |matching| / |// annotations|
    
    precision   = matching_size / len(estimated_boundaries)
    recall      = matching_size / len(reference_boundaries)
    
    f_measure   = util.f_measure(precision, recall)
    
    return precision, recall, f_measure
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: craffel/mir_eval
Commit Name: 0d78d2a33bb152be3ba5d49dad3433472b0cf9f1
Time: 2014-04-15
Author: brm2132@columbia.edu
File Name: mir_eval/boundary.py
Class Name:
Method Name: detection


Project Name: HyperGAN/HyperGAN
Commit Name: 1b199c1e7f3cf4cf7066ffbd3db407b7aa151742
Time: 2020-12-24
Author: martyn@255bits.com
File Name: hypergan/train_hooks/adversarial_norm_train_hook.py
Class Name: AdversarialNormTrainHook
Method Name: forward


Project Name: timvieira/arsenal
Commit Name: 3b84e8fc7a0d418254589693aa4fcdce0612f0b3
Time: 2018-01-17
Author: tim.f.vieira@gmail.com
File Name: arsenal/viz/learning_curve.py
Class Name: LearningCurve
Method Name: plot


Project Name: explosion/thinc
Commit Name: afc71e321e8e849d27e9d3b2f053c9ead11fd171
Time: 2017-02-04
Author: honnibal@gmail.com
File Name: thinc/neural/vecs2vec.py
Class Name: MeanPooling
Method Name: predict