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

Experiment on Pest Control #1

Open
TianningGao opened this issue Jul 31, 2023 · 4 comments
Open

Experiment on Pest Control #1

TianningGao opened this issue Jul 31, 2023 · 4 comments

Comments

@TianningGao
Copy link

Hello,

I have some question regarding categorical variables. Your paper for BODi shows some experiment results of the pest control probelm, but processing of non-binary categorical variables is marked as "TODO" in bodi/run_experiment.py. How did you run experiment on pest control problem with BODi? Did you use binary encoding or other encoding methods for categorical variables?

@aryandeshwal
Copy link
Owner

aryandeshwal commented Aug 1, 2023

Hi, Thank you for your interest in BODi. We construct a diverse random dictionary for categorical variables as well (Please see Algorithm 5 on the last page of https://arxiv.org/pdf/2303.01774.pdf). We also provided a simple illustration of the algorithm on page 18. Please check the pestcontrol branch of this repository for our code on pestcontrol. Please let me know if that helps.

Alternatively, you could also convert the categorical variables using some encoding (one-hot / log encoding) as you mentioned.

@TianningGao
Copy link
Author

OK, I see. I will try to implement Algorithm 5 myself and apply one-hot encoding.

Also, do you already have or plan to publish any python implementation of BODi for categorical variables? I mean the functionality to optimize, for example, the pest control problem without any binary encoding.

@aryandeshwal
Copy link
Owner

Hi, I think I was not fully clear but the code for categorical variables is already there in one of the branches of this repository. Please access it by this link https://github.com/aryandeshwal/BODi/tree/pestcontrol directly.

Thanks

@TianningGao
Copy link
Author

OK, I got it. Thanks

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