Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ASK] Is binary relevance the only option in RankingMetric class for pyspark evaluation? #2089

Open
lgabs opened this issue Apr 18, 2024 · 0 comments

Comments

@lgabs
Copy link

lgabs commented Apr 18, 2024

While testing metrics for pyspark evaluation, I've noticed that the ranking metrics like NDCG seems to be using binary relevances only, while python evaluation has a parameter to chose between binary, exponential or raw relevances. The snippet below shows that behavior (it will only consider which items are relevant, but not accessing their relevances):

self._items_for_user_true = (
self.rating_true.groupBy(self.col_user)
.agg(expr("collect_list(" + self.col_item + ") as ground_truth"))
.select(self.col_user, "ground_truth")

Is it possible to use exponencial or raw relevances in spark evaluation currently or am I wrong in this analysis?

@lgabs lgabs changed the title [ASK] Is custom relevance used in RankingMetric class for pyspark evaluation? [ASK] Is binary relevance the only option in RankingMetric class for pyspark evaluation? Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant