pytorch / botorch

Bayesian optimization in PyTorch
https://botorch.org/
MIT License
3.11k stars 406 forks source link

Make input & outcome transforms first class attributes of Model #2630

Closed saitcakmak closed 1 week ago

saitcakmak commented 1 week ago

Summary: These were previously only set when they were not None, which lead to a lot of hasattr, getattr usage throughout the codebase to check for them. This diff adds them as attributes to base Model class with default values of None. With this change, we can now access model.input/outcome_transform on all models.

Differential Revision: D66012223

facebook-github-bot commented 1 week ago

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