validation_curve shows how one hyperparameter affects training and validation scores, while learning_curve shows how scores change with training set size. Use the first to tune the model and the second to decide whether collecting more data will help.
scikit-learn / validation_curve / learning_curve / model-diagnosis / overfitting / underfitting / cross-validation / data-leakage
A learning curve shows whether more data helps. A rising validation score with a narrowing gap means the model scales, so regularisation may be reduced. A flat validation score means the model is capacity-limited, so regularisation should stay or increase.
learning curve / bias-variance / scalability / regularisation / scikit-learn / data leakage / cross-validation / model monitoring
Learn how to use raw_values, uniform_average, and custom weights in scikit-learn's multioutput parameter to detect per‑series degradation and choose the right aggregation for forecasting goals.
scikit-learn / multioutput / mean_absolute_error / forecasting / time-series / metric-selection / weights / raw-values
Use validation curves to detect whether a model suffers from high bias or high variance, and learning curves to decide whether more data or more complexity will help.
bias-variance / validation-curve / learning-curve / scikit-learn / model-selection / data-leakage / random-state / generalization-error
This guide explains how to use scikit-learn's validation_curve and ValidationCurveDisplay to visualize the impact of a single hyperparameter on training and validation scores, enabling precise diagnosis of model bias and variance.
scikit-learn / hyperparameter tuning / validation curve / bias-variance / overfitting / underfitting / cross-validation
Learn how different types of random_state affect the reproducibility of fit and split calls and the statistical robustness of cross-validation results.
scikit-learn / reproducibility / cross-validation / random_state / machine-learning
A regression metric like MAE=5 is meaningless without knowing what a constant predictor achieves on the same data. DummyRegressor provides that reference point, letting you judge whether your model captures real signal or merely reproduces central tendency.
DummyRegressor / baseline / MAE / regression metrics / scikit-learn / cross-validation / constant predictor / model evaluation
Fix the forecast target from the decision it supports, then train and evaluate with its strictly consistent loss: mean with squared error, median with absolute error, quantile with pinball loss.
time series forecasting / loss functions / quantile regression / pinball loss / MAE / RMSE / model evaluation / scikit-learn
Learn how to interpret relative errors and the relationship between MAE and RMSE. Understand why direct conversion is not possible but how their properties relate.
regression / forecasting / error metrics / MAE / RMSE / model evaluation / scikit-learn / multi-output
Choose a regression metric for non-negative data by first deciding the prediction goal, then picking a consistent loss such as MAE, RMSE, or pinball loss, and finally comparing against a constant baseline with a D2-style score.
scikit-learn / regression metrics / MAE / RMSE / pinball loss / quantile regression / D2 score / non-negative targets
Learn how to use the multioutput parameter in scikit-learn to retrieve per-target errors or apply custom weights to multi-output regression forecasts.
scikit-learn / regression / multi-output / model-evaluation / MAE / RMSE / weighted-metrics
Learn how to implement, evaluate, and tune quantile regression models using pinball loss and the D² skill score in scikit-learn.
scikit-learn / quantile regression / pinball loss / machine learning / regression metrics / model evaluation / hyperparameter tuning / d2 score
A practical guide to choosing precision-oriented metrics, threshold analysis, and confusion matrix decomposition in scikit-learn for minimizing false positive rates in binary classification tasks.
binary-classification / precision / false-positive / scikit-learn / threshold-selection / confusion-matrix / det-curve / model-evaluation
Understand the differences between Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE), how to choose the right metric for your prediction task, and the impact of large errors on each.
regression / model evaluation / MAE / RMSE / error metrics / scikit-learn / machine learning
A practical guide to selecting a decision threshold by weighting false‑positive and false‑negative costs, using a held‑out validation set and scikit‑learn confusion matrices.
threshold‑tuning / cost‑sensitive / confusion‑matrix / scikit‑learn / model‑validation
Prediction intervals aim to contain future individual observations, while confidence intervals target a mean or other parameter, and the two are not interchangeable. Empirical coverage is the held-out fraction inside the interval and width is the distance between quantile limits; a constructed five-value example gives 80 percent coverage and mean width 1.8.
prediction interval / confidence interval / quantile regression / empirical coverage / interval width / scikit-learn / calibration / held-out evaluation
See why groups of different sizes give a combined mean of 18 rather than 15, with a short Python example.
math
Read training and validation scores together, fit preprocessing inside a pipeline and keep a final test set out of model selection.
Machine Learning / Validation / Overfitting
Build a previous-season reference, evaluate it on later observations and distinguish calendar alignment from leakage and missing data.
Time Series / Forecasting / Baseline / Validation
Use chronological splits and fit preprocessing only on past data.
Python / Time series / Validation