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

Fix matplotlib error in BOPE tutorial #1446

Closed
wants to merge 1 commit into from

Conversation

saitcakmak
Copy link
Contributor

Summary: Matplotlib 3.6.1 has a bug with NaN handling (matplotlib/matplotlib#24127), leading to errors when running the tutorial. This implements a workaround, replacing yerr with NaNs with None.

Differential Revision: D40232488

@facebook-github-bot facebook-github-bot added CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported labels Oct 10, 2022
@facebook-github-bot
Copy link
Contributor

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

saitcakmak added a commit to saitcakmak/botorch that referenced this pull request Oct 10, 2022
Summary:
Pull Request resolved: pytorch#1446

Matplotlib 3.6.1 has a bug with NaN handling (matplotlib/matplotlib#24127), leading to errors when running the tutorial. This implements a workaround, replacing `yerr` with NaNs with `None`.

Differential Revision: D40232488

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

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

@codecov
Copy link

codecov bot commented Oct 10, 2022

Codecov Report

Merging #1446 (7161188) into main (8d213fa) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main     #1446   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          124       124           
  Lines        11529     11533    +4     
=========================================
+ Hits         11529     11533    +4     
Impacted Files Coverage Δ
botorch/models/gpytorch.py 100.00% <0.00%> (ø)

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

@Balandat
Copy link
Contributor

Also, is there a reason to switch fit_gpytorch_mll back to fit_gpytorch_model?

@saitcakmak
Copy link
Contributor Author

Good catch. I must've used an older version of the notebook, will fix.

Summary:
Pull Request resolved: pytorch#1446

Matplotlib 3.6.1 has a bug with NaN handling (matplotlib/matplotlib#24127), leading to errors when running the tutorial. This implements a workaround, replacing `yerr` with NaNs with `None`.

Differential Revision: D40232488

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

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

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

Successfully merging this pull request may close these issues.

3 participants