-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix warning filters in TestCase, introduce AxParameterWarning (#2389)
Summary: These filters were not filtering out warning as expected, due to some regex issues and unnecessary `warnings.resetwarnings()` within unit tests. `warnings.catch_warnings` resets the filters by default, so such calls were unnecessary. Note: The BoTorch dtype warnings are produced both as `InputDataWarning` & `UserWarning`. This is only filtering for `InputDataWarning`. We can reduce the warnings further by updating it on BoTorch to use `InputDataWarning`. Pull Request resolved: #2389 Test Plan: Ran some tests locally and checked what warnings are produced. `pytest -ra ax/core` now produces ~250 warnings, down from ~700. `test_fully_bayesian` now produces 68 warnings, down from 576. Reviewed By: mgarrard Differential Revision: D56443894 Pulled By: saitcakmak fbshipit-source-id: 3bd5f694e1de843288b269223156ce3b90cf3091
- Loading branch information
1 parent
5410ee2
commit 0ea8ef8
Showing
7 changed files
with
48 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters