skpro.utils.plotting.plot_crossplot_std#

skpro.utils.plotting.plot_crossplot_std(y_true, y_pred, ax=None)[source]#

Probabilistic cross-plot for regression, error vs predictive standard deviation.

Plots:

  • x-axis: absolute error samples \(|y_i - \widehat{y}_i.\mu|\)

  • y-axis: predictive standard deviation \(\widehat{y}_i.\sigma\), of the prediction \(\widehat{y}_i\) corresponding to \(y_i\)

Parameters:
y_truearray-like, [n_samples, n_targets]

Ground truth values

y_predskpro distribution, or predict_var return, [n_samples, n_targets]

Predicted values

axmatplotlib axes, optional

Axes to plot on, if None, a new figure is created and returned

Returns:
axmatplotlib axes

Axes containing the plot If ax was None, a new figure is created and returned If ax was not None, the same ax is returned with plot added