+21
−8
Loading
- 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