Skip to content

Commit

Permalink
Ranking Metrics Example - minor fix (#1517)
Browse files Browse the repository at this point in the history
## Description

In the ranking metrics example, replace prediction to target in
multi-class relevance for single column case.

- [x] I have reviewed the [Guidelines for Contributing](CONTRIBUTING.md)
and the [Code of Conduct](CODE_OF_CONDUCT.md).

Co-authored-by: felipe207 <felipe@whylabs.ai>
  • Loading branch information
FelipeAdachi and felipe207 committed May 10, 2024
1 parent a31efd1 commit 3a777f4
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -565,8 +565,8 @@
"metadata": {},
"outputs": [],
"source": [
"# single prediction column\n",
"df_multi_single_column = pd.DataFrame({\"predictions\": [[3, 2, 3, 0, 1, 2, 3, 2]]})\n",
"# single target column\n",
"df_multi_single_column = pd.DataFrame({\"ranked_targets\": [[3, 2, 3, 0, 1, 2, 3, 2]]})\n",
"\n",
"# target + prediction columns\n",
"\n",
Expand Down

0 comments on commit 3a777f4

Please sign in to comment.