Draw samples from posterior, prior predictive, and posterior
predictive distributions.
- Parameters:
X (DataArray) – Input features as a labeled array.
y (DataArray) – Target values as a labeled array.
coords (dict[str, Any] | None) – Dictionary with coordinate names for named dimensions.
Defaults to None.
- Returns:
DataTree containing the samples.
- Return type:
xr.DataTree