SklearnModelAdapter.predict#
- SklearnModelAdapter.predict(X, *, coords=None, out_of_sample=False, group='posterior')[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.group (
Literal['prior','posterior']) – Only the implicit posterior atom exists on point-estimate backends; requesting"prior"raises the group-not-sampled error namingsample_prior_predictive().
- Returns:
Point predictions with canonical prediction dimensions and singleton
chain/drawdimensions.- Return type:
xr.DataArray