e9d5373461b0a037716722a461cb12416aa5d1bc,evaluate.py,,evaluate,#Any#Any#Any#Any#Any#Any#,7
Before Change
score = gf*query
score = score.sum(1)
// predict index
s , index = score.sort(dim=0, descending=True)
index = index[0:2000]
//print(index[0:5])
// good index
After Change
//index = index[0:2000]
// good index
query_index = np.argwhere(gl==ql)
camera_index = np.argwhere(gc==qc)
good_index = np.setdiff1d(query_index, camera_index, assume_unique=True)
junk_index1 = np.argwhere(gl==-2)
junk_index2 = np.intersect1d(query_index, camera_index)
junk_index = np.append(junk_index2, junk_index1) //.flatten())
CMC_tmp = compute_mAP(index, good_index, junk_index)
return CMC_tmp
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: AIRLab-POLIMI/mushroom
Commit Name: c702968d83449f3a6aad3a5cec6cc0b2aafd78c5
Time: 2017-09-27
Author: carloderamo@gmail.com
File Name: mushroom/algorithms/dqn.py
Class Name: RDQN
Method Name: fit
Project Name: AIRLab-POLIMI/mushroom
Commit Name: c0e6857ca31934604a57fcc84d11107d844e724f
Time: 2017-08-24
Author: carlo.deramo@gmail.com
File Name: PyPi/utils/replay_memory.py
Class Name: ReplayMemory
Method Name: get