doodle2search
doodle2search copied to clipboard
Question on the Presision@200
In th code 'test.py' at line 108, the Presision@200 is computed as:
# Precision@200 means at the place 200th
precision_200 = np.mean(sort_str_sim[:, 200])
As the sort_str_sim
is actually the sorted version for a tensor with [n_sketches, n_images, n_clssses], it has the true label information on sketches and images. But it has no information on the precision and recall. The number should be computed using average_precision_score().
Does anyone know how to compute the Precision@200 value?
@umdreamer The calculation is correct, but you can check this one as well: https://github.com/qliu24/SAKE