Convert CmdStan data into an InferenceData object.
For a usage example read the Creating InferenceData section on from_cmdstan
str
or list
of str
, optional
List of paths to output.csv files.
str
or list
of str
, optional
Posterior predictive samples for the fit. If endswith “.csv” assumes file.
str
or list
of str
, optional
Out of sample predictions samples for the fit. If endswith “.csv” assumes file.
str
or list
of str
, optional
List of paths to output.csv files
str
or list
of str
, optional
Prior predictive samples for the fit. If endswith “.csv” assumes file.
str
, optional
Observed data used in the sampling. Path to data file in Rdump or JSON format.
str
or list
of str
, optional
Variable(s) used for slicing observed_data. If not defined, all data variables are imported.
str
, optional
Constant data used in the sampling. Path to data file in Rdump or JSON format.
str
or list
of str
, optional
Variable(s) used for slicing constant_data. If not defined, all data variables are imported.
str
, optional
Constant data for predictions used in the sampling. Path to data file in Rdump or JSON format.
str
or list
of str
, optional
Variable(s) used for slicing predictions_constant_data. If not defined, all data variables are imported.
dict
of {str: str
}, list
of str
or str
, optional
Pointwise log_likelihood for the data. log_likelihood is extracted from the posterior. It is recommended to use this argument as a dictionary whose keys are observed variable names and its values are the variables storing log likelihood arrays in the Stan code. In other cases, a dictionary with keys equal to its values is used. By default, if a variable log_lik
is present in the Stan model, it will be retrieved as pointwise log likelihood values. Use False
to avoid this behaviour.
int
, optional
Starting value of integer coordinate values. Defaults to the value in rcParam data.index_origin
.
dict
of {str: array_like}, optional
A dictionary containing the values that are used as index. The key is the name of the dimension, the values are the index values.
dict
of {str: list
of str
}, optional
A mapping from variables to a list of coordinate names for the variable.
Don’t use glob for string input. This means that all string input is assumed to be variable names (samples) or a path (data).
Save warmup iterations into InferenceData object, if found in the input files. If not defined, use default defined by the rcParams.
dict
or str
A dictionary containing dtype information (int, float) for parameters. If input is a string, it is assumed to be a model code or path to model code file.
InferenceData
object
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4