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

Stop some warnings in unit tests #1992

Closed
wants to merge 1 commit into from

Conversation

esantorella
Copy link
Member

Motivation

Warning output from unit tests sometimes indicates a serious problem and sometimes merely clutters the output so we can't notice the serious problems. These warnings are the latter:

  • InputDataWarning: Input data is not contained to the unit cube. Please consider min-max scaling the input data (occurred 194 times, now 0)
  • BadInitialCandidatesWarning: Unable to find non-zero acquisition function values - initial conditions are being selected randomly. (occurred 40 times, now 0)
  • The first positional argument of samplers, num_samples, has been deprecated and replaced with sample_shape, which expects a torch.Size object.' (occurred 35 times, now 0)

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Units

Related PRs

#1792, #1539

@esantorella esantorella self-assigned this Aug 21, 2023
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Aug 21, 2023
@facebook-github-bot
Copy link
Contributor

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

@codecov
Copy link

codecov bot commented Aug 21, 2023

Codecov Report

Merging #1992 (17869c7) into main (c43b074) will not change coverage.
The diff coverage is 100.00%.

❗ Current head 17869c7 differs from pull request most recent head 2d65431. Consider uploading reports for the commit 2d65431 to get more accurate results

@@           Coverage Diff           @@
##             main    #1992   +/-   ##
=======================================
  Coverage   99.99%   99.99%           
=======================================
  Files         178      178           
  Lines       15719    15721    +2     
=======================================
+ Hits        15718    15720    +2     
  Misses          1        1           
Files Changed Coverage Δ
botorch/utils/testing.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Summary:
## Motivation

Warning output from unit tests sometimes indicates a serious problem and sometimes merely clutters the output so we can't notice the serious problems. These warnings are the latter:
*  InputDataWarning: Input data is not contained to the unit cube. Please consider min-max scaling the input data (occurred 194 times, now 0)
* BadInitialCandidatesWarning: Unable to find non-zero acquisition function values - initial conditions are being selected randomly. (occurred 40 times, now 0)
*  The first positional argument of samplers, `num_samples`, has been deprecated and replaced with `sample_shape`, which expects a `torch.Size` object.' (occurred 35 times, now 0)

### Have you read the [Contributing Guidelines on pull requests](https://github.com/pytorch/botorch/blob/main/CONTRIBUTING.md#pull-requests)?

Yes

Pull Request resolved: pytorch#1992

Test Plan:
Units

## Related PRs

pytorch#1792, pytorch#1539

Reviewed By: saitcakmak

Differential Revision: D48530764

Pulled By: esantorella

fbshipit-source-id: 0d1dcd9d0ea6732f0bb639e0ba00ba93103b4ef4
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

@esantorella merged this pull request in 4cc5ed5.

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 testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants