Skip to content

Conversation

@dme65
Copy link
Contributor

@dme65 dme65 commented Jun 29, 2024

Summary:
#2371 added support for sample_all_priors to handle multivariate priors, but these changes resulted in sampling the same value for all entries of a multi-dimensional hyperparameter if a univariate prior is used. In particular, this means that sample_all_priors will sample exactly the same lengthscale for all dimensions when using a univariate prior.

This diff changes this behavior to instead sample according to the shape of the closure when a univariate prior is specified. This results in sampling different lengthscales for each dimension and batch dimension.

Differential Revision: D58855726

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jun 29, 2024
@facebook-github-bot
Copy link
Contributor

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

@codecov
Copy link

codecov bot commented Jun 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.98%. Comparing base (bf529df) to head (2e5a8fa).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2404   +/-   ##
=======================================
  Coverage   99.98%   99.98%           
=======================================
  Files         191      191           
  Lines       16705    16707    +2     
=======================================
+ Hits        16702    16704    +2     
  Misses          3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@facebook-github-bot
Copy link
Contributor

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

dme65 pushed a commit to dme65/botorch that referenced this pull request Jun 30, 2024
…eta-pytorch#2404)

Summary:
Pull Request resolved: meta-pytorch#2404

meta-pytorch#2371 added support for `sample_all_priors` to handle multivariate priors, but these changes resulted in sampling the same value for all entries of a multi-dimensional hyperparameter if a univariate prior is used. In particular, this means that `sample_all_priors` will sample exactly the same lengthscale for all dimensions when using a univariate prior.

This diff changes this behavior to instead sample according to the shape of the closure when a univariate prior is specified. This results in sampling different lengthscales for each dimension and batch dimension.

Differential Revision: D58855726
@dme65 dme65 force-pushed the export-D58855726 branch from e5ed7c4 to fbd7f57 Compare June 30, 2024 02:12
…eta-pytorch#2404)

Summary:
Pull Request resolved: meta-pytorch#2404

meta-pytorch#2371 added support for `sample_all_priors` to handle multivariate priors, but these changes resulted in sampling the same value for all entries of a multi-dimensional hyperparameter if a univariate prior is used. In particular, this means that `sample_all_priors` will sample exactly the same lengthscale for all dimensions when using a univariate prior.

This diff changes this behavior to instead sample according to the shape of the closure when a univariate prior is specified. This results in sampling different lengthscales for each dimension and batch dimension.

Differential Revision: D58855726
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 965f154.

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