arviz.CmdStanPySamplingWrapper#
- class arviz.CmdStanPySamplingWrapper(data_file, **kwargs)[source]#
CmdStanPy sampling wrapper base class.
See the documentation on
SamplingWrapper
for a more detailed description. An example ofCmdStanPySamplingWrapper
usage can be found in the Refitting CmdStanPy models with ArviZ notebook.Warning
Sampling wrappers are an experimental feature in a very early stage. Please use them with caution.
Methods
CmdStanPySamplingWrapper.__init__
(data_file, ...)Initialize the CmdStanPySamplingWrapper.
Check that all methods listed are implemented.
Convert the fit object returned by
self.sample
to InferenceData.Retrieve the log likelihood of the excluded observations from
idata__i
.Resample cmdstanpy model on modified_observed_data.
Select a subset of the observations in idata_orig.