Skip to content

Commit

Permalink
Linear trend (#991)
Browse files Browse the repository at this point in the history
* push up some linear-trend work I had

* image for the documentation

* start the slopes at t=0

* additional checks at init

* import at mmm module

* update the image

* Move to reference section

* Move coords to single line

* Add hierarchical trend example

* add image for the example

* migrate to pydantic

* update images after seed

* Correct the latex

* fix check from tests
  • Loading branch information
wd60622 authored and twiecki committed Sep 10, 2024
1 parent b7c66cd commit 0c10953
Show file tree
Hide file tree
Showing 5 changed files with 573 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/_static/linear-trend-prior.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions pymc_marketing/mmm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
saturation_from_dict,
)
from pymc_marketing.mmm.fourier import MonthlyFourier, YearlyFourier
from pymc_marketing.mmm.linear_trend import LinearTrend
from pymc_marketing.mmm.media_transformation import (
MediaConfig,
MediaConfigList,
Expand Down Expand Up @@ -85,4 +86,5 @@
"validating",
"validation_method_X",
"validation_method_y",
"LinearTrend",
]
Loading

0 comments on commit 0c10953

Please sign in to comment.