Skip to content

Conversation

@saitcakmak
Copy link
Contributor

Motivation

With the existing implementation, some test functions do not support evaluations with X having multi-dim batch_shape, e.g., X.shape = [2, 3, d]. This PR updates the implementation of such test functions to use negative indexing, thus supporting multi-dim batch_shape.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Extended test coverage by adding batch_shape = [2, 3] in BaseTestProblemBaseTestCase.test_forward(). Made sure that the updated implementation agrees with the function definitions in https://www.sfu.ca/~ssurjano/optimization.html.

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Mar 31, 2021
@codecov
Copy link

codecov bot commented Mar 31, 2021

Codecov Report

Merging #757 (ab32013) into master (43239d1) will not change coverage.
The diff coverage is 100.00%.

❗ Current head ab32013 differs from pull request most recent head ff79f7f. Consider uploading reports for the commit ff79f7f to get more accurate results
Impacted file tree graph

@@            Coverage Diff            @@
##            master      #757   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          101       101           
  Lines         6987      6987           
=========================================
  Hits          6987      6987           
Impacted Files Coverage Δ
botorch/test_functions/multi_fidelity.py 100.00% <ø> (ø)
botorch/test_functions/synthetic.py 100.00% <100.00%> (ø)
botorch/utils/testing.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 43239d1...ff79f7f. Read the comment docs.

Copy link
Contributor

@Balandat Balandat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, thanks for this PR!

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

@Balandat merged this pull request in 421a91d.

@saitcakmak saitcakmak deleted the test_func branch August 17, 2021 23:36
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. Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants