Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrapper LinearRegression MMM for baseline analysis #1554

Open
wd60622 opened this issue Mar 10, 2025 · 1 comment
Open

Wrapper LinearRegression MMM for baseline analysis #1554

wd60622 opened this issue Mar 10, 2025 · 1 comment
Labels
enhancement New feature or request good second issue Bit more involved but still doable for newcomers MMM

Comments

@wd60622
Copy link
Contributor

wd60622 commented Mar 10, 2025

Special case MMM which no adstock and linear saturation transformation. For baseline model but allows for all of the features that MMM allows.

Wrapper around:

from pymc_marketing.mmm import AdstockTransformation, SaturationTransformation, MMM

class NoAdstock(AdstockTransformation): 
    lookup_name: str = "no_adstock"

    def transform(self, x): 
        return x

class Linear(SaturationTransformation): 
    lookup_name: str = "linear"
    
    def transform(self, x, beta): 
        return beta * x

mmm = MMM(adstock=NoAdstock(), saturation=Linear(), **kwargs)

CC: @cetagostini

@wd60622 wd60622 added MMM and removed Needs Triage labels Mar 10, 2025
@wd60622 wd60622 changed the title Wrapper LinearRegression MMM Wrapper LinearRegression MMM for baseline analysis Mar 10, 2025
@juanitorduz
Copy link
Collaborator

yes!

@wd60622 wd60622 added enhancement New feature or request good second issue Bit more involved but still doable for newcomers labels Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good second issue Bit more involved but still doable for newcomers MMM
Projects
None yet
Development

No branches or pull requests

2 participants