e9d5373461b0a037716722a461cb12416aa5d1bc,evaluate.py,,evaluate,#Any#Any#Any#Any#Any#Any#,7

Before Change


    // good index
    good_index = [i for i,x in enumerate(gl) if (x==ql and gc[i]!=qc )]
    junk_index1 = [i for i,x in enumerate(gl) if (x==-2) ]
    junk_index2 = [i for i,x in enumerate(gl) if (x==ql and gc[i]==qc )]
    junk_index = junk_index2 + junk_index1
    //print(len(junk_index))
    CMC_tmp = compute_mAP(index, good_index, junk_index)
    return CMC_tmp

After Change


// Evaluate
def evaluate(qf,ql,qc,gf,gl,gc):
    query = qf
    score = np.dot(gf,query)
    // predict index
    index = np.argsort(score)  //from small to large
    index = index[::-1]
    //index = index[0:2000]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: layumi/Person_reID_baseline_pytorch
Commit Name: e9d5373461b0a037716722a461cb12416aa5d1bc
Time: 2018-01-01
Author: zzheng@joo-ml1-dev.j.cinglevue.com
File Name: evaluate.py
Class Name:
Method Name: evaluate


Project Name: rodluger/starry
Commit Name: 4f75512036063f707ac077a22bc028c81edfef27
Time: 2019-12-17
Author: rodluger@gmail.com
File Name: starry/kepler.py
Class Name: System
Method Name: draw


Project Name: uber/pyro
Commit Name: cce694178ae66b3a84623d517ffdf0c1bb32ba27
Time: 2020-05-11
Author: fehiepsi@gmail.com
File Name: pyro/infer/mcmc/hmc.py
Class Name: HMC
Method Name: _kinetic_energy