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

Reverse a Yeo-Johnson transformation #1403

Open
conarr5 opened this issue Dec 17, 2024 · 1 comment
Open

Reverse a Yeo-Johnson transformation #1403

conarr5 opened this issue Dec 17, 2024 · 1 comment

Comments

@conarr5
Copy link

conarr5 commented Dec 17, 2024

I have a project where I'm using step_yeoJohnson() to transform my data and then adding noise to the transformed data. How can I use the recipes package to reverse the YJ transformation?

@conarr5 conarr5 changed the title Reverse a YeoJohnson transformation Reverse a Yeo-Johnson transformation Dec 17, 2024
@topepo
Copy link
Member

topepo commented Dec 18, 2024

Can you give more information about what you would like to do?

All of the operations in a recipe occur before the supervised model. I'm not sure how, in a recipe, un-doing a transformation helps. Here's a high-level sketch of the process:

  1. start recipe
  2. transform data
  3. do some other things using the transformed data
  4. back-transform data
  5. do some additional things using the untransformed data
  6. pass data to model (untransformed)
  7. make predictions

Can you help us understand what things would go into steps 3 and 5?

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

No branches or pull requests

2 participants