-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Change the output interface of evaluate #8003
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
base: main
Are you sure you want to change the base?
Conversation
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.
Solid work! LGTM with one minor comment.
Let's talk offline for potential breakage, and align on the release schedule.
if isinstance(other, (float, int)): | ||
return self.__float__() == other | ||
elif isinstance(other, Prediction): | ||
return self.__float__() == float(other) |
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.
nit: shall we do float(self) == float(other)
for consistency?
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.
I guess this should be consistent with how __ge__
or __le__
are implemented?
7aeb618
to
ed8fd13
Compare
2f7a26e
to
ce1ea2d
Compare
please merge the PR to be able to get the individual example level evaluation score. This will be useful for mlflow tracing. |
In this PR, we change the output interface of
Evaluate.__call__
.Instead of returning either score, (score, outputs), (score, scores, outputs) based on arguments, it will always return dspy.Prediction containing the following fields:
Since this is a breaking change, this should be released in the next minor release rather than a patch release.