recommenders-team / recommenders

Best Practices on Recommendation Systems
https://recommenders-team.github.io/recommenders/intro.html
MIT License
18.81k stars 3.07k forks source link

[FEATURE] Spark and python's evaluation metrics should produce the same result. #2002

Closed loomlike closed 10 months ago

loomlike commented 11 months ago

Description

Spark and python's evaluation metrics should produce the same result. For that, we should refactor pytest to check if they produce the same values for the same test. This issue is to track the pytest refactoring to implement that.

Expected behavior with the suggested feature

Define test parameters and expected-outputs by using a fixture. Then use the same fixture for both python and pyspark evaluation metrics.