pymc-labs / pymc-marketing

Bayesian marketing toolbox in PyMC. Media Mix (MMM), customer lifetime value (CLV), buy-till-you-die (BTYD) models and more.
https://www.pymc-marketing.io/
Apache License 2.0
715 stars 201 forks source link

Address ArrayLike in documentation #1197

Open wd60622 opened 2 weeks ago

wd60622 commented 2 weeks ago

We should be able to consolidate to tensor_like as that is defined in the docs/source/conf.py

The build logs are as follows:

Subset of the build logs ``` WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.adstock.AdstockTransformation.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.adstock.AdstockTransformation.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.adstock.DelayedAdstock.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.adstock.DelayedAdstock.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.adstock.GeometricAdstock.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.adstock.GeometricAdstock.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.adstock.WeibullCDFAdstock.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.adstock.WeibullCDFAdstock.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.adstock.WeibullPDFAdstock.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.adstock.WeibullPDFAdstock.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.base.Transformation.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.base.Transformation.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.saturation.HillSaturation.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.saturation.HillSaturation.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.saturation.HillSaturationSigmoid.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.saturation.HillSaturationSigmoid.function": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.saturation.HillSaturationSigmoid.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.saturation.HillSaturationSigmoid.function": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.saturation.InverseScaledLogisticSaturation.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.saturation.InverseScaledLogisticSaturation.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.saturation.LogisticSaturation.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.saturation.LogisticSaturation.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.saturation.MichaelisMentenSaturation.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.saturation.MichaelisMentenSaturation.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.saturation.RootSaturation.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.saturation.RootSaturation.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.saturation.SaturationTransformation.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.saturation.SaturationTransformation.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.saturation.TanhSaturation.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.saturation.TanhSaturation.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.saturation.TanhSaturationBaselined.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.components.saturation.TanhSaturationBaselined.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.fourier.generate_fourier_modes": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.fourier.FourierBase.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.fourier.FourierBase.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.fourier.MonthlyFourier.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.fourier.MonthlyFourier.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.fourier.MonthlyFourier.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.fourier.MonthlyFourier.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.fourier.YearlyFourier.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.fourier.YearlyFourier.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.fourier.generate_fourier_modes": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.linear_trend.LinearTrend.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.linear_trend.LinearTrend.apply": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.transformers.hill_saturation_sigmoid": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.transformers.root_saturation": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.transformers.tanh_saturation": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.transformers.tanh_saturation_baselined": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.transformers.TanhSaturationBaselinedParameters.rebaseline": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.transformers.TanhSaturationBaselinedParameters.rebaseline": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.transformers.TanhSaturationParameters.baseline": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.transformers.TanhSaturationParameters.baseline": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.transformers.hill_function": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.transformers.hill_saturation_sigmoid": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.transformers.root_saturation": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.transformers.tanh_saturation": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.mmm.transformers.tanh_saturation_baselined": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.prior.create_dim_handler": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.prior.handle_dims": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.prior.register_tensor_transform": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.prior.Prior.create_likelihood_variable": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.prior.Prior.create_likelihood_variable": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.prior.create_dim_handler": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.prior.handle_dims": name 'ArrayLike' is not defined WARNING: Cannot resolve forward reference in type annotations of "pymc_marketing.prior.register_tensor_transform": name 'ArrayLike' is not defined ```