frozen_deterministics#
- pymc_marketing.terms.frozen_deterministics(param)[source]#
Collect the frozen-deterministic names a term tree declares, at any depth.
A term whose deterministic reduces over a dimension declares it through
ModelTerm.frozen_deterministics(SoftPlusHSGPTermdeclares{name}_f_mean). This walks compositions and term wrappers such asNamedandTransform, so the names are found in a whole recipe. Order is first-seen and names are unique.- Parameters:
param (
Any) – The term tree to inspect.- Return type:
- Returns:
Deterministic names to replace with
deterministics_to_flat().
Examples
recipe = SoftPlusHSGPTerm(name="tvp") * media_term frozen_deterministics(recipe) # ['tvp_f_mean']