Model Evaluation Measures: Median Absolute Error, and R^2 Score
Explore the use of median absolute error and R squared score as key metrics to evaluate regression models. Understand how median absolute error measures prediction accuracy robust to outliers and how R squared indicates the proportion of variance explained by a model. Gain skills to interpret these metrics and apply them effectively in machine learning projects.
We'll cover the following...
Median absolute error
Median is a descriptive statistics measure and is robust to outliers in the dataset. The rate of error is calculated by taking the median of all absolute differences between the target and the prediction. Lower values mean the model is more accurate.
Formula
If is the predicted target real-valued output, then is the corresponding target real-valued output and is the total number of instances. Then the median absolute error is calculated as follows:
...