Repository navigation
Conversation
) ScoreL2RPN2020._compute_episode_score read "load_p" twice, so the losses of the reference agent, production minus load, were always 0 and so was the 100 points anchor. It reads "prod_p" again, as before c9fe76a. ScoreICAPS2021, ScoreL2RPN2022 and ScoreL2RPN2023 reuse that method. The regression test checks the anchor against the losses computed from the statistics of two scenarios of l2rpn_case14_sandbox. Assisted-by: Claude Code (claude-opus-5-5) Signed-off-by: xl0g <53918010+xl0g@users.noreply.github.com>
Not up to standards ⛔
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the first point of #792. The second point, whether the 100 points anchor should be a cost rather than MW, is a choice about the formula and is left out of this PR.
What
ScoreL2RPN2020._compute_episode_scorereads"load_p"twice:so
ep_losses = prod - loadis always 0, and so is the 100 points anchorbest_score. Before c9fe76a, which moved the computation tostat_no_overflow_rp, the second line read"prod_p". This PR puts it back.ScoreICAPS2021,ScoreL2RPN2022andScoreL2RPN2023reuse this method, so they are fixed too.Scores near the top of the range change: an agent between the reference agent and the best anchor now gets fewer points than before.
Test
test_issue_792.pyscores a do nothing agent on two scenarios ofl2rpn_case14_sandboxand checks that the 100 points anchor passed tonp.interpequals the losses of the reference agent timesmin_losses_ratio, computed from the statistics. It fails before the fix, with an anchor of 0, and passes after.The other score tests pass:
test_utils,test_highres_sim_counter_in_scores,test_score_idf_2023,test_score_idf_2023_nres,test_score_idf_2023_assistant,test_issue_591andtest_score_wcci_2022.