Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
lanzhenw committed Nov 25, 2024
1 parent 29bcdb3 commit ae7b873
Showing 1 changed file with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1158,8 +1158,13 @@ export default function Evaluation(props: EvaluationProps) {
hovertemplate:
[
"<b>count: %{z:d}</b>",
`${evaluation?.info?.config?.gt_field}: %{y}`,
`${evaluation?.info?.config?.pred_field}: %{x}`,
`${
evaluation?.info?.config?.gt_field || "truth"
}: %{y}`,
`${
evaluation?.info?.config?.pred_field ||
"predicted"
}: %{x}`,
].join(" <br>") + "<extra></extra>",
},
]}
Expand Down Expand Up @@ -1192,8 +1197,13 @@ export default function Evaluation(props: EvaluationProps) {
hovertemplate:
[
"<b>count: %{z:d}</b>",
`ground_truth: %{y}`,
`predictions: %{x}`,
`${
evaluation?.info?.config?.gt_field || "truth"
}: %{y}`,
`${
evaluation?.info?.config?.pred_field ||
"predicted"
}: %{x}`,
].join(" <br>") + "<extra></extra>",
},
]}
Expand Down

0 comments on commit ae7b873

Please sign in to comment.