guoguibing / librec

LibRec: A Leading Java Library for Recommender Systems, see
https://www.librec.net/
Other
3.24k stars 1.03k forks source link

How to compute several precisions & how to load a model #322

Open prosso opened 4 years ago

prosso commented 4 years ago

Hello, I have two questions: 1) how can I compute precision@10, precision@5, precision@3 and precision@1 all together? If in my config file I write:

rec.recommender.ranking.topn=10 rec.recommender.ranking.topn=5 rec.recommender.ranking.topn=3 rec.recommender.ranking.topn=1

.. librec will alway compute only the last one (in this case precision@1)

2) is there a way to train and store a model, and then load it in order to calculate other metrics?

Thanks