-
Notifications
You must be signed in to change notification settings - Fork 409
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
[Bug] fixed_features
does not support negative indices
#2602
Labels
bug
Something isn't working
Comments
esantorella
added a commit
to esantorella/botorch
that referenced
this issue
Oct 31, 2024
Summary: Context: See pytorch#2602 This PR: * Adds a check for negative fixed_features keys to input validation for optimizers. This applies to all of the optimizers that take fixed_features. * Updates docstrings Differential Revision: D65272024
Thanks for reporting. I put in #2603 to update docstrings to clarify that negative indices are not allowed and raise an exception if they are provided. |
I feel like it shouldn't be to hard to allow this by canonicalizing the indices to |
facebook-github-bot
pushed a commit
that referenced
this issue
Oct 31, 2024
…2603) Summary: Pull Request resolved: #2603 Context: See #2602 This PR: * Adds a check for negative fixed_features keys to input validation for optimizers. This applies to all of the optimizers that take fixed_features. * Updates docstrings Reviewed By: Balandat Differential Revision: D65272024 fbshipit-source-id: f9da998a7308390358d22c768093685c587b664c
To keep things organized, I opened #2605 for that feature request. It would be a good task for a newcomer. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug
If
fixed_features
has a negative index, the initial conditions will not be constructed with the correct reduced dimensionality.To reproduce
** Code snippet to reproduce **
** Stack trace/error message **
Expected Behavior
The negative indices should be equivalent to specifying the last dimension, or the docs should make it clear that this is not allowed.
System information
Please complete the following information:
Additional context
This line is one reason why it doesn't work - I don't know yet if there are other areas where the indices are assumed positive.
botorch/botorch/generation/utils.py
Line 164 in 66660e3
The text was updated successfully, but these errors were encountered: