neg_crps#

neg_crps(estimator: Any, X: Any, y: Any) → float[source]#

The mean continuous ranked probability score (CRPS) of a regressor’s predictions of y at the rows X, with its sign flipped, so that higher is better, as scikit-learn’s scorers are: a scorer for cross_val_score(scoring=neg_crps) or GridSearchCV.

The CRPS of one row compares the whole predicted distribution of a new observation with the observed value: for a normal distribution it is in the target’s units, it is the absolute error when the prediction has no spread, and lower is better. It rewards a mean close to the observation and a spread that is honest about how close. The estimator’s predict(X, return_std=True) gives the mean and standard deviation of each row; any scikit-learn regressor that takes return_std, such as scikit-learn’s own GaussianProcessRegressor, can be scored. The scores come from the scoringrules package.

Expand for references to skgp.sklearn.neg_crps

Using skgp with scikit-learn / Choosing settings with a grid search