aeppl.utils#

Functions

change_rv_size(rv_var, new_size[, expand])

Change or expand the size of a RandomVariable.

convert_indices(indices, entry)

extract_obs_data(x)

Extract data from observed symbolic variables.

get_constant_value(x)

Use constant folding to get a constant value.

indices_from_subtensor(idx_list, indices)

Compute a useable index tuple from the inputs of a *Subtensor** Op.

replace_rvs_in_graphs(graphs, replacement_fn)

Replace random variables in graphs.

rvs_to_value_vars(graphs[, initial_replacements])

Replace random variables in graphs with their value variables.

walk_model(graphs[, walk_past_rvs, ...])

Walk model graphs and yield their nodes.