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
Loading
Please sign in to comment