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

Don't allow unused **kwargs in input_constructors except for a defined set of exceptions #1872

Closed
wants to merge 1 commit into from

Conversation

esantorella
Copy link
Member

Summary:
[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into **kwargs and be silently ignored
[x] add arguments to some input constructors so they don't need any **kwargs
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Reviewed By: SebastianAment

Differential Revision: D46519588

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

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

esantorella added a commit to esantorella/botorch that referenced this pull request Jun 7, 2023
…d set of exceptions (pytorch#1872)

Summary:
Pull Request resolved: pytorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Reviewed By: SebastianAment

Differential Revision: D46519588

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

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

esantorella added a commit to esantorella/botorch that referenced this pull request Jun 7, 2023
…d set of exceptions (pytorch#1872)

Summary:
Pull Request resolved: pytorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Reviewed By: SebastianAment

Differential Revision: D46519588

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

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

esantorella added a commit to esantorella/botorch that referenced this pull request Jun 7, 2023
…d set of exceptions (pytorch#1872)

Summary:
Pull Request resolved: pytorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Reviewed By: SebastianAment

Differential Revision: D46519588

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

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

@codecov
Copy link

codecov bot commented Jun 7, 2023

Codecov Report

Merging #1872 (c8da5a1) into main (fe122b0) will not change coverage.
The diff coverage is 100.00%.

❗ Current head c8da5a1 differs from pull request most recent head 5600900. Consider uploading reports for the commit 5600900 to get more accurate results

@@            Coverage Diff            @@
##              main     #1872   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          178       178           
  Lines        15721     15725    +4     
=========================================
+ Hits         15721     15725    +4     
Files Changed Coverage Δ
botorch/acquisition/knowledge_gradient.py 100.00% <ø> (ø)
botorch/acquisition/max_value_entropy_search.py 100.00% <ø> (ø)
botorch/acquisition/input_constructors.py 100.00% <100.00%> (ø)
botorch/acquisition/joint_entropy_search.py 100.00% <100.00%> (ø)
botorch/acquisition/monte_carlo.py 100.00% <100.00%> (ø)
botorch/acquisition/multi_objective/monte_carlo.py 100.00% <100.00%> (ø)

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

esantorella added a commit to esantorella/botorch that referenced this pull request Jun 7, 2023
…d set of exceptions (pytorch#1872)

Summary:
Pull Request resolved: pytorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Reviewed By: SebastianAment

Differential Revision: D46519588

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

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

esantorella added a commit to esantorella/botorch that referenced this pull request Aug 9, 2023
…d set of exceptions (pytorch#1872)

Summary:
Pull Request resolved: pytorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Reviewed By: SebastianAment

Differential Revision: D46519588

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

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

esantorella added a commit to esantorella/Ax that referenced this pull request Aug 9, 2023
…d set of exceptions

Summary:
X-link: pytorch/botorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Reviewed By: SebastianAment

Differential Revision: D46519588

fbshipit-source-id: c260276514e97c093d01255b9c8e6a7aa7142b06
esantorella added a commit to esantorella/botorch that referenced this pull request Aug 9, 2023
…d set of exceptions (pytorch#1872)

Summary:
X-link: facebook/Ax#1772

Pull Request resolved: pytorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Reviewed By: SebastianAment

Differential Revision: D46519588

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

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

esantorella added a commit to esantorella/Ax that referenced this pull request Aug 9, 2023
…d set of exceptions (facebook#1772)

Summary:
Pull Request resolved: facebook#1772

X-link: pytorch/botorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Reviewed By: SebastianAment

Differential Revision: D46519588

fbshipit-source-id: 4407a32b94ff51db28e2b625188eea2fd89c1e71
esantorella added a commit to esantorella/botorch that referenced this pull request Aug 9, 2023
…d set of exceptions (pytorch#1872)

Summary:
X-link: facebook/Ax#1772

Pull Request resolved: pytorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Reviewed By: SebastianAment

Differential Revision: D46519588

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

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

esantorella added a commit to esantorella/Ax that referenced this pull request Aug 9, 2023
…d set of exceptions (facebook#1772)

Summary:
Pull Request resolved: facebook#1772

X-link: pytorch/botorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Reviewed By: SebastianAment

Differential Revision: D46519588

fbshipit-source-id: 44c5c6e99a4e3ae3b287da9901a9e20af322239e
esantorella added a commit to esantorella/Ax that referenced this pull request Aug 11, 2023
…d set of exceptions (facebook#1772)

Summary:
Pull Request resolved: facebook#1772

X-link: pytorch/botorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Reviewed By: SebastianAment

Differential Revision: D46519588

fbshipit-source-id: 44ea95d82cd50a3ecebc248759ea5d1db9a3bf51
esantorella added a commit to esantorella/botorch that referenced this pull request Aug 16, 2023
…d set of exceptions (pytorch#1872)

Summary:
X-link: facebook/Ax#1772

Pull Request resolved: pytorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Reviewed By: lena-kashtelyan

Differential Revision: D46519588

fbshipit-source-id: 74049ac702fbe77ab50e5e7434bc0a6979f8a5e4
esantorella added a commit to esantorella/Ax that referenced this pull request Aug 16, 2023
…d set of exceptions (facebook#1772)

Summary:
Pull Request resolved: facebook#1772

X-link: pytorch/botorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Reviewed By: lena-kashtelyan

Differential Revision: D46519588

fbshipit-source-id: 2870b074becf102f712a3380b316dfe037cd9bdc
esantorella added a commit to esantorella/botorch that referenced this pull request Aug 16, 2023
…d set of exceptions (pytorch#1872)

Summary:
X-link: facebook/Ax#1772

Pull Request resolved: pytorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Differential Revision: https://internalfb.com/D46519588

fbshipit-source-id: 325e41bb0e2b2be501403fdb039d22f3ef91e11b
esantorella added a commit to esantorella/Ax that referenced this pull request Aug 16, 2023
…d set of exceptions (facebook#1772)

Summary:
Pull Request resolved: facebook#1772

X-link: pytorch/botorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Differential Revision: https://internalfb.com/D46519588

fbshipit-source-id: 15e0249c1d6e06f57b24926969b8859e071efe14
esantorella added a commit to esantorella/botorch that referenced this pull request Aug 16, 2023
…d set of exceptions (pytorch#1872)

Summary:
X-link: facebook/Ax#1772

Pull Request resolved: pytorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Differential Revision: https://internalfb.com/D46519588

fbshipit-source-id: 8b6dfddd8044eb14f6b06dc09d039ddfb4282380
esantorella added a commit to esantorella/Ax that referenced this pull request Aug 16, 2023
…d set of exceptions (facebook#1772)

Summary:
Pull Request resolved: facebook#1772

X-link: pytorch/botorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Differential Revision: https://internalfb.com/D46519588

fbshipit-source-id: 39c46dbc04c5464d7bb7b2720e91bfca92156c55
esantorella added a commit to esantorella/botorch that referenced this pull request Aug 17, 2023
…d set of exceptions (pytorch#1872)

Summary:
X-link: facebook/Ax#1772

Pull Request resolved: pytorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Differential Revision: https://internalfb.com/D46519588

fbshipit-source-id: 47d734acb908c2af72b8729a9325befeb0575074
esantorella added a commit to esantorella/Ax that referenced this pull request Aug 17, 2023
…d set of exceptions (facebook#1772)

Summary:
Pull Request resolved: facebook#1772

X-link: pytorch/botorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Differential Revision: https://internalfb.com/D46519588

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

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

esantorella added a commit to esantorella/botorch that referenced this pull request Aug 17, 2023
…d set of exceptions (pytorch#1872)

Summary:
X-link: facebook/Ax#1772

Pull Request resolved: pytorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Reviewed By: lena-kashtelyan

Differential Revision: D46519588

fbshipit-source-id: ef78006e43f2aca6ec94f1bb0126a8842a945345
esantorella added a commit to esantorella/Ax that referenced this pull request Aug 17, 2023
…d set of exceptions (facebook#1772)

Summary:
Pull Request resolved: facebook#1772

X-link: pytorch/botorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Reviewed By: lena-kashtelyan

Differential Revision: D46519588

fbshipit-source-id: ebd0acf14dd96e11c87ed85b3fa1963c26f70823
esantorella added a commit to esantorella/botorch that referenced this pull request Aug 17, 2023
…d set of exceptions (pytorch#1872)

Summary:
X-link: facebook/Ax#1772

Pull Request resolved: pytorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Differential Revision: https://internalfb.com/D46519588

fbshipit-source-id: 383954715df45538fda470ecdeb5acdcc9171d18
esantorella added a commit to esantorella/Ax that referenced this pull request Aug 17, 2023
…d set of exceptions (facebook#1772)

Summary:
Pull Request resolved: facebook#1772

X-link: pytorch/botorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Differential Revision: https://internalfb.com/D46519588

fbshipit-source-id: 5b295423e549939117fce25547612e48f38c49f3
esantorella added a commit to esantorella/botorch that referenced this pull request Aug 17, 2023
…d set of exceptions (pytorch#1872)

Summary:
X-link: facebook/Ax#1772

Pull Request resolved: pytorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Differential Revision: https://internalfb.com/D46519588

fbshipit-source-id: 986c242587b418a083dc58360622ddb4cc2842bb
esantorella added a commit to esantorella/Ax that referenced this pull request Aug 17, 2023
…d set of exceptions (facebook#1772)

Summary:
Pull Request resolved: facebook#1772

X-link: pytorch/botorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Reviewed By: lena-kashtelyan

Differential Revision: D46519588

fbshipit-source-id: 9396e0c72f235a7adc693c5539a4cd8447943e86
esantorella added a commit to esantorella/botorch that referenced this pull request Aug 17, 2023
…d set of exceptions (pytorch#1872)

Summary:
X-link: facebook/Ax#1772

Pull Request resolved: pytorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Reviewed By: lena-kashtelyan

Differential Revision: D46519588

fbshipit-source-id: 862fab3fca2460e04462b4b408b6bc3431baa0ff
esantorella added a commit to esantorella/Ax that referenced this pull request Aug 17, 2023
…d set of exceptions (facebook#1772)

Summary:
Pull Request resolved: facebook#1772

X-link: pytorch/botorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Differential Revision: https://internalfb.com/D46519588

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

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

esantorella added a commit to esantorella/Ax that referenced this pull request Aug 17, 2023
…d set of exceptions (facebook#1772)

Summary:
Pull Request resolved: facebook#1772

X-link: pytorch/botorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Reviewed By: lena-kashtelyan

Differential Revision: D46519588

fbshipit-source-id: 7a050d71f8a2a9bf75a34dd7fa69c1481d049fe4
…d set of exceptions (pytorch#1872)

Summary:
X-link: facebook/Ax#1772

Pull Request resolved: pytorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Reviewed By: lena-kashtelyan

Differential Revision: D46519588

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in b6e74ac.

facebook-github-bot pushed a commit to facebook/Ax that referenced this pull request Aug 17, 2023
…d set of exceptions (#1772)

Summary:
Pull Request resolved: #1772

X-link: pytorch/botorch#1872

[x] Remove unused arguments from input constructors and related functions. The idea is especially not to let unused keyword arguments disappear into `**kwargs` and be silently ignored
[x] add arguments to some input constructors so they don't need any `**kwargs`
[x] Add a decorator that ensures that each input constructor can accept a certain set of keyword arguments, even if those are not used are the constructor, while still erroring on
[ ] Prevent arguments from having different defaults in the input constructors as in acquisition functions

Reviewed By: lena-kashtelyan

Differential Revision: D46519588

fbshipit-source-id: 8d727cb991f2899cc9e7ee68da7998e981ca8802
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