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 tutorials after introduction of MetricFetchResult #1475

Closed
wants to merge 1 commit into from

Conversation

mpolson64
Copy link
Contributor

Summary:
A few tutorials were not compatible with the new way we fetch data. In this diff we change custom metrics to return Ok(data) instead of data, and change trial.fetch_data() => Metric._unwrap_trial_data_multi(results=trial.fetch_data()).

In the future we may want to add some copy in the tutorials discussing Result, but we should land this for now to get things working again ASAP

Differential Revision: D40994060

Summary:
A few tutorials were not compatible with the new way we fetch data. In this diff we change custom metrics to return Ok(data) instead of data, and change `trial.fetch_data()` => `Metric._unwrap_trial_data_multi(results=trial.fetch_data())`.

In the future we may want to add some copy in the tutorials discussing Result, but we should land this for now to get things working again ASAP

Differential Revision: D40994060

fbshipit-source-id: 0246818e55659090fdd12cd1082bc8d807c93b27
@facebook-github-bot facebook-github-bot added CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported labels Nov 3, 2022
@facebook-github-bot
Copy link
Contributor

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

@codecov
Copy link

codecov bot commented Nov 3, 2022

Codecov Report

Merging #1475 (f1a5d87) into main (48f2047) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main     #1475   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          134       134           
  Lines        12397     12397           
=========================================
  Hits         12397     12397           

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

facebook-github-bot pushed a commit to facebook/Ax that referenced this pull request Nov 3, 2022
Summary:
Pull Request resolved: #1243

X-link: pytorch/botorch#1475

A few tutorials were not compatible with the new way we fetch data. In this diff we change custom metrics to return Ok(data) instead of data, and change `trial.fetch_data()` => `Metric._unwrap_trial_data_multi(results=trial.fetch_data())`.

In the future we may want to add some copy in the tutorials discussing Result, but we should land this for now to get things working again ASAP

Reviewed By: dme65

Differential Revision: D40994060

fbshipit-source-id: 9a5f86273a7da8496e480a0d7ca0aa2c03ecb194
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.

2 participants