Skip to content

Conversation

@mariosasko
Copy link
Contributor

This PR fixes an issue in #40967 where duplicate parameters across different parameter groups are not allowed, but duplicates inside the same parameter group are accepted. After this PR, both cases are treated equally and raise ValueError.

Copy link
Contributor

@vincentqb vincentqb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vincentqb has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@mariosasko
Copy link
Contributor Author

@vincentqb Since I'm not a Facebook employee, is it possible to find out what caused the warning during internal tests so I can fix it. Don't know if these tests are just ordinary tests from this repo, or there are additionional tests on top of that. This PR is relatively small, so I didn't build it from source and run tests, since I'm working on Windows and building from source seems a bit tricky (probably should use Linux for this sort of development in the future).

@albanD
Copy link
Collaborator

albanD commented Jul 20, 2020

Hey,

It seems like the tests for botorch gets broken by this change. In particular, they actually use duplicated parameters in their test suite.
We should double check with them if this is on purpose or not. And what is the behavior they expect.

If it is just an oversight on their side. A simple way to move forward is to make the error a warning stating that this will become an error in future versions.
You can also link to the issue in the warning for people that want more details of why it is ambiguous to do it.

@mariosasko
Copy link
Contributor Author

Will do.

@dr-ci
Copy link

dr-ci bot commented Jul 23, 2020

💊 CI failures summary and remediations

As of commit f1c6235 (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 3 times.

@mariosasko
Copy link
Contributor Author

@albanD @vincentqb Replaced the error with a warning.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vincentqb has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@mariosasko
Copy link
Contributor Author

@albanD @vincentqb Not sure what breaks the tests now. If it's related to third party modules, when I fetched from the master to be up to date (before making my changes), I forgot to update submodules so I can push that fully updated version of the branch if you think it can solve the issue.

@vincentqb
Copy link
Contributor

vincentqb commented Jul 27, 2020

The errors showing up internally are now unrelated. I'm trying to land the diff again.

@facebook-github-bot
Copy link
Contributor

@vincentqb merged this pull request in 4281240.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants