HSGPKwargs#
- pydantic model pymc_marketing.hsgp_kwargs.HSGPKwargs[source]#
HSGP keyword arguments for the time-varying prior.
See [1] and [2] for the theoretical background on the Hilbert Space Gaussian Process (HSGP). See , [6] for a practical guide through the method using code examples. See the
HSGPclass for more information on the Hilbert Space Gaussian Process in PyMC. We also recommend the following resources for a more practical introduction to HSGP: [3], [4], [5].References
[1]Solin, A., Sarkka, S. (2019) Hilbert Space Methods for Reduced-Rank Gaussian Process Regression.
[2]Ruitort-Mayol, G., and Anderson, M., and Solin, A., and Vehtari, A. (2022). Practical Hilbert Space Approximate Bayesian Gaussian Processes for Probabilistic Programming.
[3]PyMC Example Gallery: “Gaussian Processes: HSGP Reference & First Steps”.
[4]PyMC Example Gallery: “Gaussian Processes: HSGP Advanced Usage”.
[5]PyMC Example Gallery: “Baby Births Modelling with HSGPs”.
Methods
HSGPKwargs.__init__(**data)Create a new model by parsing and validating input data from keyword arguments.
HSGPKwargs.from_dict(data)Reconstruct from a dict.
HSGPKwargs.to_dict([_orig])- field L: float | None = None[source]#
Extent of basis functions. Set this to reflect the expected range of in+out-of-sample data (considering that time-indices are zero-centered). Defaults to
X_mid * 2(identical toc=2in HSGP).- Constraints:
gt = 0
- field cov_func: CovFunc | None = None[source]#
Covariance function enum. Supported values:
ExpQuad,Matern52,Matern32.Noneis resolved toMatern52at model-build time.
- field ls_mu: float = 5.0[source]#
Mean of the inverse gamma prior for the lengthscale.
- Constraints:
gt = 0