-
Notifications
You must be signed in to change notification settings - Fork 71
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
fix(weave): include scores from scorers with illegal characters in name #2731
Conversation
Preview this PR with FeatureBee: https://beta.wandb.ai/?betaVersion=b8ccd62ef681dc067c04f47a0c2886df00b5443d |
...ePanelComponents/Home/Browse3/pages/wfReactInterface/tsDataModelHooksEvaluationComparison.ts
Outdated
Show resolved
Hide resolved
weave/flow/scorer.py
Outdated
if not scorer_name: | ||
raise ValueError("Scorer name is required") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
required by lint for some reason, should be impossible
8e5cabd
to
fb44f46
Compare
|
||
@pytest.mark.parametrize( | ||
"scorer_name", | ||
["my scorer", "my-scorer()*&^%$@#/", "my-scorer", " my scorer "], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these names should all end up being the same @andrewtruong
|
||
if scorer_name: | ||
scorer_name = sanitize_object_name(scorer_name) | ||
|
||
return (scorer_name, score_fn, summarize_fn) # type: ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh I see, you need to do this because we return scorer_name
here but sanitization currently happens at saving step
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch!
Description
This pr includes:
Note: Scorers with names like
v1
andv1!
will be treated as identical...Master:
This branch:
This is the UI for the above two runs, while the unsanitized scorers look different, we can still compare them in the UI.
Testing
Added test