Data Science, Machine Learning, Regression, Evaluation Metric, Linear Regression.
model deviates by 4% in price prediction. Here’s how you would typically apply the MAPE score on Python: # True and predicted values y_true = np.array([5, 2, 7, 3, 9]) y_pred = np.array([4.2, 2.2, 6.4, 3.9, 10.5]) # Computing the MAPE score mape = mean_absolute_percentage_error(y_true, y_pred) mape