Skip to content

Commit

Permalink
Merge branch 'main' into menten-as-tensorvariable
Browse files Browse the repository at this point in the history
  • Loading branch information
juanitorduz authored Oct 17, 2024
2 parents 6fdcc1d + aef9791 commit 5eee159
Show file tree
Hide file tree
Showing 6 changed files with 1,589 additions and 50 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/label-blank-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Taken from scikit-learn repo
# https://github.com/scikit-learn/scikit-learn/blob/main/.github/workflows/label-blank-issue.yml
name: Label Blank Issue

on:
issues:
types: [opened]

jobs:
label-blank-issues:
runs-on: ubuntu-latest
steps:
- uses: andymckay/[email protected]
with:
add-labels: "Needs Triage"
ignore-if-labeled: true
Binary file added docs/source/_static/causal_ladder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/source/notebooks/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Here you will find a collection of examples and how-to guides for using PyMC-Mar
mmm/mmm_example
mmm/mmm_budget_allocation_example
mmm/mmm_lift_test
mmm/mmm_counterfactuals
mmm/mmm_tvp_example
mmm/mmm_time_varying_media_example
mmm/mmm_components
Expand Down
1,522 changes: 1,522 additions & 0 deletions docs/source/notebooks/mmm/mmm_counterfactuals.ipynb

Large diffs are not rendered by default.

96 changes: 48 additions & 48 deletions docs/source/notebooks/mmm/mmm_roas.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pymc_marketing/mmm/mmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,9 +808,9 @@ class MMM(
we consider a Bayesian linear model of the form:
.. math::
y_{t} = \\alpha + \\sum_{m=1}^{M}\\beta_{m}f(x_{m, t}) + \\sum_{c=1}^{C}\\gamma_{c}z_{c, t} + \\varepsilon_{t},
y_{t} = \alpha + \sum_{m=1}^{M}\beta_{m}f(x_{m, t}) + \sum_{c=1}^{C}\gamma_{c}z_{c, t} + \varepsilon_{t},
where :math:`\\alpha` is the intercept, :math:`f` is a media transformation function and :math:`\\varepsilon_{t}` is the error therm
where :math:`\alpha` is the intercept, :math:`f` is a media transformation function and :math:`\varepsilon_{t}` is the error therm
which we assume is normally distributed. The function :math:`f` encodes the contribution of media on the target variable.
Typically we consider two types of transformation: adstock (carry-over) and saturation effects.
Expand Down

0 comments on commit 5eee159

Please sign in to comment.