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

Cleanup in test_botorch_moo_defaults.BotorchMOODefaultsTest #3249

Closed
wants to merge 2 commits into from

Conversation

esantorella
Copy link
Contributor

Summary:
Context: I was aiming to remove unnecessary mocks here, but there actually weren't any; these mocks are being used to test that arguments are being passed through correctly.

Changes:

  • Added some comments
  • Stopped instantiating an unneeded model (it was used only for its model._model attribute, which is None)
  • Pulled out repetitive posterior
  • Reduced the scope of a context manager by unindenting

Differential Revision: D68233296

…faults.FrontierEvaluatorTest (facebook#3241)

Summary:

* Fit a model in which fitting had been mocked out before
* Move some logic out of the `setUp` so that we don't fit a model in tests where it isn't needed
* In `test_pareto_frontier_raise_error_when_missing_data`, use an unfit model

Reviewed By: saitcakmak

Differential Revision: D68214262
Summary:
Context: I was aiming to remove unnecessary mocks here, but there actually weren't any; these mocks are being used to test that arguments are being passed through correctly.

Changes:
* Added some comments
* Stopped instantiating an unneeded model (it was used only for its `model._model` attribute, which is None)
* Pulled out repetitive `posterior`
* Reduced the scope of a context manager by unindenting

Differential Revision: D68233296
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jan 17, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68233296

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 81fba5c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants