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

The Yeo-Johnson Transformation for rescaling datasets is causing my optimization process to slow down. #9

Open
Mehdilotfi7 opened this issue Jun 5, 2024 · 2 comments

Comments

@Mehdilotfi7
Copy link

Hello,
I'm working on optimizing an objective function that involves rescaling my data. While log transformation is common, I've opted for the Yeo-Johnson transformation due to its ability to handle values between zero and one effectively.

However, I've encountered a challenge: the Yeo-Johnson transformation is computationally expensive, especially when iterating over multiple parameter tests during optimization.

I'm wondering if you have any suggestions for potentially reducing the running time associated with the Yeo-Johnson transformation within the optimization process.

Perhaps there are vectorized implementations available, or pre-computation strategies that could be employed?

Any insights you could share would be greatly appreciated.

Thanks.

@tk3369
Copy link
Owner

tk3369 commented Jul 15, 2024

Hi, I have just updated the dependency for Optim to the most recent version. I don't know if that helps but worth trying.

The code is fairly straightforward but I don't really have time to work on this. You can take a look and do some benchmarking and see if you can improve its performance. Or you can ask the community for help -- Discourse would be a good option. A lot of people there are willing to help especially anything related to performance.

@tk3369
Copy link
Owner

tk3369 commented Jul 20, 2024

Are you using the general transform function or would you be able to provide your own lambda parameter?

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