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

solver based scoring #1131

Merged
merged 8 commits into from
Jan 17, 2025
Merged

solver based scoring #1131

merged 8 commits into from
Jan 17, 2025

Conversation

jjallaire
Copy link
Collaborator

This PR enables solvers to optionally yield scores:

  1. The TaskState now has target and scores fields
  2. Solver generates scores are combined with scorers specified at the task level.

The main use case for this is users that would like to create a single Python construct to perform an entire task. This is applicable both when there is high coupling between solver and scorer (and passing data through task state / store is awkward) and also for an upcoming feature where we let people write Inspect solvers without any dependencies on inspect_ai itself.

@jjallaire jjallaire requested a review from dragonstyle January 16, 2025 14:58
Copy link
Collaborator

@dragonstyle dragonstyle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks very good!

@jjallaire jjallaire merged commit 497596b into main Jan 17, 2025
9 checks passed
@jjallaire jjallaire deleted the feature/solver-scoring branch January 17, 2025 12:18
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

Successfully merging this pull request may close these issues.

2 participants