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
Using the same strictly consistent scoring function for both training and evaluation in time series forecasting ensures models are optimized for and accurately assessed against the desired outcome.
time series / forecasting / loss function / evaluation metric / quantile regression / pinball loss / consistency / model training
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
Decide between MAE and RMSE by aligning the loss with the target functional - mean versus median - and the business tolerance for large errors. RMSE magnifies outliers while MAE keeps them linear, affecting risk‑sensitive decisions.
forecasting / MAE / RMSE / scikit-learn / loss functions
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
Align alpha with business risk, train with HistGradientBoostingRegressor loss='quantile', and evaluate using mean_pinball_loss with matching alpha in GridSearchCV.
quantile regression / pinball loss / scikit-learn / model evaluation / risk tolerance
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
Use validation_curve to spot over- or underfitting from a single hyperparameter; use learning_curve to judge if more data will reduce variance. This article explains how to interpret the train-validation gap and avoid common pitfalls.
validation curve / learning curve / overfitting / bias-variance / scikit-learn
Learning curves plot training and validation scores against sample size. A wide persistent gap signals variance (more data helps); a low plateau with a small gap signals bias (more data will not help).
scikit-learn / learning-curve / bias-variance / model-selection / data-collection
Passing an integer to a CV splitter guarantees identical folds across estimator comparisons, while a RandomState instance causes different splits on each split() call, making fold-wise scores non-comparable.
scikit-learn / cross-validation / random_state / reproducibility / RandomState / KFold / model-comparison
Fit preprocessing steps like feature selection and StandardScaler only on the training split; a scikit-learn Pipeline enforces the correct fit/transform sequence and prevents optimistic scores.
scikit-learn / data leakage / preprocessing / pipeline / feature selection / cross-validation
scikit-learn scorers must return higher-is-better values, so error metrics are registered as neg_-prefixed strings that cross_val_score and GridSearchCV maximize. Negate the returned scores to recover the original loss.
scikit-learn / cross-validation / GridSearchCV / regression-metrics / scoring-API / MAE / model-selection
MAE counts each prediction error linearly and without a cap: one large error shifts the metric by its magnitude divided by n. Outlier robustness means no quadratic amplification, not insensitivity to extreme errors.
regression / metrics / MAE / outliers / scikit-learn / 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
Use TimeSeriesSplit to evaluate time-ordered forecasts without leakage, compute per-horizon errors, and choose a strictly consistent metric that matches the decision cost.
time-series / cross-validation / forecast-evaluation / scoring-functions / decision-cost / scikit-learn
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