arviz_stats.ELPDDataLOO#
- class arviz_stats.ELPDDataLOO(*, 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)[source]#
PSIS-LOO-CV results returned by
looand related functions.Also returned by
loo_i,loo_approximate_posterior,loo_moment_matchandreloo. Inherits the attributes ofELPDData.- Attributes:
- approx_posteriorbool
True when the approximate posterior correction was applied.
- log_weights
xarray.DataArray, optional Smoothed log importance weights.
- log_jacobian
xarray.DataArray, optional Log-Jacobian adjustment for variable transformations.
- p_loo_i
xarray.DataArray, optional Pointwise effective number of parameters, set by
relooandloo_moment_match.- influence_pareto_k
xarray.DataArray, optional Pareto k values before moment matching, set by
loo_moment_match.- n_eff_i
xarray.DataArray, optional Effective sample size per observation, set by
loo_moment_match.
- __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)#
Methods
__init__(*, elpd, se, p, n_samples, ...[, ...])Attributes
approx_posteriorelpd_iinfluence_pareto_kkindName of the estimator that produced the result.
log_jacobianlog_weightsn_eff_ip_loo_ipareto_kelpdsepn_samplesn_data_pointsscalewarninggood_k