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
Model
class with validated data.HSGPBase.model_copy
(*[, update, deep])Usage docs: https://docs.pydantic.dev/2.10/concepts/serialization/#model_copy
HSGPBase.model_dump
(*[, mode, include, ...])Usage docs: https://docs.pydantic.dev/2.10/concepts/serialization/#modelmodel_dump
HSGPBase.model_dump_json
(*[, indent, ...])Usage docs: https://docs.pydantic.dev/2.10/concepts/serialization/#modelmodel_dump_json
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
(_BaseModel__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, *[, ...])Usage docs: https://docs.pydantic.dev/2.10/concepts/json/#json-parsing
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[, subplot_kwargs, ...])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_fields
model_config
Configuration for the model, should be a dictionary conforming to [
ConfigDict
][pydantic.config.ConfigDict].model_extra
Get extra fields set during validation.
model_fields
model_fields_set
Returns the set of fields that have been explicitly set on this model instance.
m
X
X_mid
dims
transform
demeaned_basis