\(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\R}[1]{ {\rm #1} }\)
get_freeze_dict¶
View page sourceGet Set of Covariate Multipliers That are Frozen¶
# at_cascade.get_freeze_dict
def get_freeze_dict(
node_table,
fit_node_id,
fit_split_reference_id,
mulcov_freeze_table,
) :
assert type(node_table) == list
assert type(fit_node_id) == int
assert type(fit_split_reference_id) == int or fit_split_reference_id == None
assert type(mulcov_freeze_table) == list
node_table¶
is a list of dict containing the node table for this cascade.
fit_node_id¶
is the fit_node_id for this fit.
fit_split_reference_id¶
is the split_reference_id for this fit.
If this is an int ( None ),
the split_covariate_name does is (is not)
in the option_all table.
mulcov_freeze_table¶
is the mulcov_freeze_table for this cascade.
mulcov_freeze_dict¶
keys¶
The keys in this dictionary is the set of mulcov_id for covariates that should be frozen for jobs that are children of this fit. In other words, if this fit job, and any parent of this fit job, is in the mulcov_freeze table, the corresponding mulcov_id is in mulcov_freeze_dict .
values¶
If this fit job is in the mulcov_freeze table with this mulcov_id , mulcov_freeze_dict [ mulcov_id ] is ‘posterior’ .
If a parent of this fit job is in the mulcov_freeze table with this mulcov_id , mulcov_freeze_dict [ mulcov_id ] is ‘prior’ .