doodle2search icon indicating copy to clipboard operation
doodle2search copied to clipboard

Question on the Presision@200

Open umdreamer opened this issue 4 years ago • 1 comments

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 avatar Aug 08 '20 05:08 umdreamer

@umdreamer The calculation is correct, but you can check this one as well: https://github.com/qliu24/SAKE

neouyghur avatar Nov 17 '20 10:11 neouyghur