Calculate MRR and Recall

Hi
I would like to calculate MRR and Recall of the performance of my model.
To calculate those, I need not only 1 prediction per input, but multiple predictions, sorted by score.
Should I use n_best>1 to get those?
Is there anyway to export those to a file I can use to calculate?
Thanks!

Duplicate of Github Issue, discussion happening here: