arviz_base.labels.DimCoordLabeller#
- class arviz_base.labels.DimCoordLabeller[source]#
Labeller class to show both dimension and coordinate value information.
The default labels for “theta” variable on the subset corresponding to “chain” 0 and “school” “Name” are:
Single line label#theta[chain: 0, school: Name]
Multi-line label#theta chain: 0, school: Name
See also
- Label guide
Tutorial page on using labellers with ArviZ
- __init__(*args, **kwargs)#
Methods
__init__
(*args, **kwargs)dim_coord_to_str
(dim, coord_val, coord_idx)Format a single dimension name, its value and positional indexes as a string.
make_label_flat
(var_name, sel, isel)Format variable name and corresponding subset as a single line string.
make_label_vert
(var_name, sel, isel)Format variable name and corresponding subset as a multiline string.
make_pp_label
(var_name, pp_var_name, sel, isel)Format obs+pp variable name plus corresponding subsets as a multiline string.
sel_to_str
(sel, isel)Format selection dictionaries as a string.
var_name_to_str
(var_name)Format a variable name as a string.
var_pp_to_str
(var_name, pp_var_name)Format the corresponding variable names for observation and posterior predictive.