ModelAdapter.predict#
- abstractmethod ModelAdapter.predict(X, *, out_of_sample=False, **kwargs)[source]#
Return expected outcomes with canonical prediction dimensions.
Every backend returns the same container: response-scale expected outcomes as an
xarray.DataArraywith dimensions("chain", "draw", "obs_ind", "treated_units"). Point-estimate backends (sklearn) return singletonchain/drawdimensions — a point estimate is a posterior with one atom.- Parameters:
- Returns:
Expected outcomes with dimensions
("chain", "draw", "obs_ind", "treated_units").- Return type:
xr.DataArray