Repository navigation
fix(regression): use absolute targets for MAPE summary values - #1986
Open
anticipate218 wants to merge 1 commit into
Open
anticipate218 wants to merge 1 commit into
anticipate218 wants to merge 1 commit into
Conversation
Preserve the existing epsilon floor and zero-handling policies. Cover negative and mixed targets, reference data, and filtering through the public Report API. Assisted-by: OpenAI Codex
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.
For negative regression targets, MAPE summary values currently clip the signed target to epsilon before dividing. For example, a public report with targets [-1, -2, -4] and predictions [-1.1, -1.8, -3.2] reports approximately 1.65e17% instead of 13.33%.
Use the target magnitude in the denominator before applying the existing epsilon floor. This fixes the MAPE summary mean and standard deviation while preserving near-zero handling and existing result units. The separate percentage-error plot calculation is outside this change. Regression tests exercise the public report API with negative and mixed-sign targets, positive controls, zero-handling modes, reference data, and missing/infinite values.
Validation in a clean isolated environment on Windows with Python 3.13.5:
No full repository runtime suite, notebook smoke tests, live-provider tests, GPU tests, or runtime platform matrix was run. Existing warnings were retained.
AI assistance: OpenAI Codex was used to investigate, implement, validate, and review this change. No separate human code review is claimed.