HSGPBase#
- class pymc_marketing.mmm.hsgp.HSGPBase(**data)[source]#
Shared logic between HSGP and HSGPPeriodic.
Methods
HSGPBase.__init__(**data)Create a new model by parsing and validating input data from keyword arguments.
HSGPBase.construct([_fields_set])HSGPBase.copy(*[, include, exclude, update, ...])Returns a copy of the model.
HSGPBase.create_variable(name)Create a variable from configuration.
Name of the Deterministic variables that are replaced with pm.Flat for out-of-sample.
HSGPBase.dict(*[, include, exclude, ...])HSGPBase.from_orm(obj)HSGPBase.json(*[, include, exclude, ...])HSGPBase.model_construct([_fields_set])Creates a new instance of the
Modelclass with validated data.HSGPBase.model_copy(*[, update, deep])!!! abstract "Usage Documentation"
HSGPBase.model_dump(*[, mode, include, ...])!!! abstract "Usage Documentation"
HSGPBase.model_dump_json(*[, indent, ...])!!! abstract "Usage Documentation"
HSGPBase.model_json_schema([by_alias, ...])Generates a JSON schema for a model class.
HSGPBase.model_parametrized_name(params)Compute the class name for parametrizations of generic classes.
HSGPBase.model_post_init(context, /)Override this method to perform additional initialization after
__init__andmodel_construct.HSGPBase.model_rebuild(*[, force, ...])Try to rebuild the pydantic-core schema for the model.
HSGPBase.model_validate(obj, *[, strict, ...])Validate a pydantic model instance.
HSGPBase.model_validate_json(json_data, *[, ...])!!! abstract "Usage Documentation"
HSGPBase.model_validate_strings(obj, *[, ...])Validate the given object with string data against the Pydantic model.
HSGPBase.parse_file(path, *[, content_type, ...])HSGPBase.parse_obj(obj)HSGPBase.parse_raw(b, *[, content_type, ...])HSGPBase.plot_curve(curve[, n_samples, ...])Plot the curve.
Register the data to be used in the model.
HSGPBase.sample_prior([coords])Sample from the prior distribution.
HSGPBase.schema([by_alias, ref_template])HSGPBase.schema_json(*[, by_alias, ref_template])Convert the object to a dictionary.
HSGPBase.update_forward_refs(**localns)HSGPBase.validate(value)Attributes
model_computed_fieldsmodel_configConfiguration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].model_extraGet extra fields set during validation.
model_fieldsmodel_fields_setReturns the set of fields that have been explicitly set on this model instance.
mXX_middimstransformdemeaned_basis