arviz_stats.ELPDDataLOOSubsample#
- class arviz_stats.ELPDDataLOOSubsample(*, elpd, se, p, n_samples, n_data_points, scale, warning, good_k, elpd_i=None, pareto_k=None, approx_posterior=False, log_weights=None, log_jacobian=None, p_loo_i=None, influence_pareto_k=None, n_eff_i=None, subsample_size, subsampling_se, loo_subsample_observations, elpd_loo_approx, log_p=None, log_q=None, thin_factor=None)[source]#
Subsampled PSIS-LOO-CV results returned by
loo_subsample.Also returned by
update_subsample. Inherits the attributes ofELPDDataLOO. Withpointwise=Truethelog_weightsattribute holds aDatasetwith one variable named after the log likelihood variable, otherwise aDataArrayrestricted to the subsampled observations.- Attributes:
- subsample_size
int Number of observations in the subsample.
- subsampling_se
float Standard error due to subsampling uncertainty only.
- loo_subsample_observations
ndarray Indices of the subsampled observations.
- elpd_loo_approx
xarray.DataArray Approximate pointwise ELPD for every observation.
- log_p
xarray.DataArrayorndarray, optional Log density of the target posterior.
- log_q
xarray.DataArrayorndarray, optional Log density of the proposal posterior.
- thin_factor
intorstr, optional Thinning factor applied to the posterior draws, an integer or
"auto".
- subsample_size
- __init__(*, elpd, se, p, n_samples, n_data_points, scale, warning, good_k, elpd_i=None, pareto_k=None, approx_posterior=False, log_weights=None, log_jacobian=None, p_loo_i=None, influence_pareto_k=None, n_eff_i=None, subsample_size, subsampling_se, loo_subsample_observations, elpd_loo_approx, log_p=None, log_q=None, thin_factor=None)#
Methods
__init__(*, elpd, se, p, n_samples, ...[, ...])Attributes
approx_posteriorelpd_iinfluence_pareto_kkindName of the estimator that produced the result.
log_jacobianlog_plog_qlog_weightsn_eff_ip_loo_ipareto_kthin_factorsubsample_sizesubsampling_seloo_subsample_observationselpd_loo_approxelpdsepn_samplesn_data_pointsscalewarninggood_k