is_hsgp_kwargs_format#
- pymc_marketing.mmm.tvp.is_hsgp_kwargs_format(config)[source]#
Check if a dictionary uses HSGPKwargs-style keys.
This function detects whether a configuration dictionary follows the HSGPKwargs format (with keys like
eta_lam,ls_mu,ls_sigma) or theparameterize_from_dataformat (with keys likels_lower,ls_upper).- Parameters:
- Returns:
- bool
True if the config contains HSGPKwargs-style keys, False otherwise.
Examples
HSGPKwargs format detection:
>>> is_hsgp_kwargs_format({"m": 200, "eta_lam": 1.0, "ls_mu": 5.0}) True
parameterize_from_data format detection:
>>> is_hsgp_kwargs_format({"ls_lower": 0.3, "ls_upper": 2.0}) False