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

Improve agent score comprehensibility #3175

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Improve agent score comprehensibility #3175

wants to merge 13 commits into from

Conversation

rakow
Copy link
Contributor

@rakow rakow commented Mar 18, 2024

In complex scenarios, it can be quite difficult to understand why agents chose a certain plan over another. We may see the total score at the end, but may not be aware what led to that score. In my opinion, a good understanding about all separate factors in the scoring function is very useful, especially when calibrating or debugging scenarios.

This PR tries to address this by adding a explainScore(StringBuilder out) method to the scoring interface. By implementing this method, scoring functions may write out individual components of the scoring process.
These score explanations are attached as attributes to a plan if ScoringConfigGroup.writeScoreExplanations is enabled.
The implementation tries to not cause any overhead if the feature is disabled, in this case no strings are constructed.
In this PR the functionality has been implemented for the default CharyparNagelScoring.
Scores can be slightly different now at the last significant digits (~10e-15), because the order of floating point operations is now different.

Feedback for the implementation or the idea in general is very welcome.

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.

None yet

1 participant