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 of CmdStanPySamplingWrapper 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.

CmdStanPySamplingWrapper.check_implemented_methods(methods)

Check that all methods listed are implemented.

CmdStanPySamplingWrapper.get_inference_data(...)

Convert the fit object returned by self.sample to InferenceData.

CmdStanPySamplingWrapper.log_likelihood__i(...)

Retrieve the log likelihood of the excluded observations from idata__i.

CmdStanPySamplingWrapper.sample(...)

Resample cmdstanpy model on modified_observed_data.

CmdStanPySamplingWrapper.sel_observations(idx)

Select a subset of the observations in idata_orig.