tensorflow / recommenders

TensorFlow Recommenders is a library for building recommender system models using TensorFlow.
Apache License 2.0
1.82k stars 273 forks source link

How can I add Mean Average Precision metric? #696

Open ftcister opened 11 months ago

ftcister commented 11 months ago

Hello, I was reading several books on recommender systems and in the literature the mAP (Mean Average Precision) metric is used a lot and I wanted to know how I can implement it, in the tutorials and in the API only TopK Accuracy appears, I was wondering if anyone has already implemented mAP@K, thanks.

rlcauvin commented 11 months ago

It looks like you may use tfr.keras.metrics.MeanAveragePrecisionMetric.