SklearnModelAdapter.predict#

SklearnModelAdapter.predict(X, *, coords=None, out_of_sample=False)[source]#

Return point predictions as singleton posterior draws.

Parameters:
  • X (Any) – Predictor matrix for which to generate predictions.

  • coords (dict[str, Any] | None) – Ignored for sklearn backends.

  • out_of_sample (bool) – Ignored for sklearn backends.

Returns:

Point predictions with canonical prediction dimensions and singleton chain/draw dimensions.

Return type:

xr.DataArray