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
yat the rowsX, with its sign flipped, so that higher is better, as scikit-learn’s scorers are: a scorer forcross_val_score(scoring=neg_crps)orGridSearchCV.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 takesreturn_std, such as scikit-learn’s ownGaussianProcessRegressor, can be scored. The scores come from the scoringrules package.Expand for references to
skgp.sklearn.neg_crpsUsing skgp with scikit-learn / Choosing settings with a grid search