Skip to content

Add Target Scaling #436

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

Open
glevv opened this issue Jan 9, 2025 · 2 comments
Open

Add Target Scaling #436

glevv opened this issue Jan 9, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@glevv
Copy link

glevv commented Jan 9, 2025

I think it will have huge impact on results and on model training. I think pymc-marketing does it too.

Right now you can do standardize(y) in formula, but it does not support inverse transformations, which is inconvenient for result analysis and plotting.

@drbenvincent
Copy link
Collaborator

Hi @glevv. Sorry for the delayed response. I think this is a good idea. I assume you're after some kind of kwarg which automatically does this behind the scenes and uses something like https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.StandardScaler.html#sklearn.preprocessing.StandardScaler ?

Is this something you'd like to take a stab at? Either way, marking this as a feature request

@drbenvincent drbenvincent added the enhancement New feature or request label Feb 10, 2025
@glevv
Copy link
Author

glevv commented Feb 17, 2025

Yes, something like this. An argument that will use StandardScaler on target variable and inverse transformation on the prediction, so that PyMC models would fit properly.
I'm not sure how to add this functionality to the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants