MAE and RMSE are specifically designed for regression problems where you're predicting continuous numerical values. Here's a breakdown of the ML algorithm categories where they can be used:
Primary Use Cases: Regression Algorithms
Traditional Regression Methods:
- Linear regression, polynomial regression
- Ridge, Lasso, and Elastic Net regression
- Support Vector Regression (SVR)
- K-Nearest Neighbors regression (KNN)
- Gaussian Process regression
Tree-Based Regression:
- Decision tree regression
- Random Forest regression
- Gradient boosting methods (XGBoost, LightGBM, CatBoost, AdaBoost)
- Extra Trees regression
Neural Networks:
- Feedforward neural networks for regression
- Convolutional Neural Networks (CNNs) for regression tasks
- Recurrent Neural Networks (RNNs, LSTMs, GRUs) for sequence prediction
Time Series Forecasting
MAE and RMSE are extremely common in time series analysis:
- ARIMA and SARIMA models
- Exponential smoothing methods
- Prophet (Facebook's forecasting tool)
- LSTM/GRU networks for time series
- Any regression algorithm applied to time series data
Ensemble Methods
Both metrics work with ensemble approaches:
- Voting regressors
- Bagging regressors
- Stacking regressors
- Any combination of the above regression algorithms
Specialized Applications
Recommender Systems:
When predicting numerical ratings (e.g., 1-5 star ratings), MAE and RMSE are standard evaluation metrics.
Computer Vision:
- Regression tasks like age prediction, pose estimation
- Object detection (for bounding box coordinate prediction)
- Image super-resolution (pixel intensity prediction)
Natural Language Processing:
- Sentiment analysis when predicting continuous sentiment scores
- Text regression tasks (predicting numerical scores from text)
What They CAN'T Be Used For
Classification Tasks:
MAE and RMSE are not suitable for traditional classification because:
- They require continuous target values, not discrete classes
- Classification uses metrics like accuracy, precision, recall, F1-score, ROC-AUC
Unsupervised Learning:
- Clustering algorithms (K-means, hierarchical clustering)
- Dimensionality reduction (PCA, t-SNE)
- These don't make predictions against known targets
Edge Cases and Special Considerations
Ordinal Classification:
Sometimes MAE is used for ordinal classification (ordered categories like survey ratings 1-5) by treating the ordinal values as continuous, though this is less common.
Multi-output Regression:
Both MAE and RMSE can be adapted for problems where you predict multiple continuous values simultaneously.
Probabilistic Outputs:
While uncommon, you might use these metrics when evaluating the continuous probability scores from classification models, though other metrics are typically more appropriate.
Key Takeaway
MAE and RMSE are your go-to metrics whenever your algorithm outputs continuous numerical predictions that you can compare against continuous target values. If you're predicting categories, classes, or clusters, you'll need different evaluation metrics designed for those specific tasks.
The beauty of these metrics is their universality across regression algorithms - whether you're using a simple linear regression or a complex deep neural network, MAE and RMSE provide consistent, interpretable measures of prediction accuracy.