MMMModelBuilder.sample_posterior_predictive#
- MMMModelBuilder.sample_posterior_predictive(X=None, extend_idata=True, combined=True, **sample_posterior_predictive_kwargs)#
 Sample from the model’s posterior predictive distribution.
- Parameters:
 - X
array,shape(n_pred,n_features) The input data used for prediction using prior distribution..
- extend_idata
Boolean Determine whether the predictions should be added to inference data object. Defaults to True.
- combined: Boolean
 Combine chain and draw dims into sample. Won’t work if a dim named sample already exists. Defaults to True.
- **sample_posterior_predictive_kwargs: Additional arguments to pass to pymc.sample_posterior_predictive
 
- X
 - Returns:
 - posterior_predictive_samples
DataArray,shape(n_pred,samples) Posterior predictive samples for each input X
- posterior_predictive_samples