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

Add target task values to SearchSpaceDigest #1894

Closed
wants to merge 2 commits into from

Conversation

bletham
Copy link
Contributor

@bletham bletham commented Oct 5, 2023

Summary: Earlier in this stack we add "target_value" as a required attribute for task parameters, like it has been for fidelity parameters. The first place in the stack where "target_value" is considered to be exclusively for fidelity parameters is in SearchSpaceDigest, so this adjusts the logic there to also track target values for task parameters. And renames the attribute, to make it more clear that it is not restricted to fidelity parameters.

Differential Revision: D49701286

bletham and others added 2 commits October 5, 2023 09:07
Summary:
Task parameters have a "target_value" attribute, but we haven't been using it; it has previously only been used for fidelity parameters. But at the core level, there's nothing in its implementation that would restrict its use to fidelity parameters. But all of our applications of multi-task models have a target task, and the new MultiTaskDataset in botorch requires specifying a target task.

In order to migrate our multi-task models to use MultiTaskDataset (D49604249), we need to have a target task. This diff makes target_value a required attribute for task parameters, the same way it is currently required for fidelity parameters.

Propagating the target value to the search space digest will happen in a stacked diff.

Transforms that create task parameters (TrialAsTask and MetricsAsTask) are adjusted to appropriately specify the target value.

Differential Revision: D49659731

fbshipit-source-id: 47d66c06f86f58722703698d02d4626a38f46967
Summary: Earlier in this stack we add "target_value" as a required attribute for task parameters, like it has been for fidelity parameters. The first place in the stack where "target_value" is considered to be exclusively for fidelity parameters is in SearchSpaceDigest, so this adjusts the logic there to also track target values for task parameters. And renames the attribute, to make it more clear that it is not restricted to fidelity parameters.

Differential Revision: D49701286

fbshipit-source-id: ca3b7af107f371d9f501a3fe0b90fec00a85d726
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Oct 5, 2023
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in dd10bee.

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