Unverified Commit 0f09420d authored by Claude's avatar Claude
Browse files

Fix MAPE calculation to use correct denominator

- Changed calculate_mape to divide by valid_count (non-zero actuals) instead of total count
- Added proper validation checks for empty/mismatched arrays
- Made accuracy calculation more explicit with clear loop
- Fixed bug where MAPE was incorrectly calculated when some actual values were zero
parent 4ffedd7c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment