-
Notifications
You must be signed in to change notification settings - Fork 418
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
Improve Documentation of Testing Base Classes in BoTorch #2770
Conversation
This pull request was exported from Phabricator. Differential Revision: D71198064 |
3d4872a
to
02b66d8
Compare
Summary: I added doc strings (and some abstract methods). I came across the following issues doing so: - There are multiple private functions, like `_get_random_data`. These are used outside, though, thus the editor shows them as unused. Should they maybe not be private instead? - The double naming of `BaseTestProblem` and `functions` is confusing for me. Is there a reason for this? Should we maybe change it to only use one of the two? - Only `TestCorruptedProblemsMixin.rosenbrock_problem` seems to be used from that Mixin. Should we maybe change this to not be a Mixin, but just the rosenbrock variable instad, or not have the `outlier_generator` inside the Mixin? - I think we should delete `rsample_from_base_samples`. It is not used (if my command+click works here properly) and hard to understand. Reviewed By: esantorella Differential Revision: D71198064
This pull request was exported from Phabricator. Differential Revision: D71198064 |
Summary: Pull Request resolved: pytorch#2770 I added doc strings (and some abstract methods). I came across the following issues doing so: - There are multiple private functions, like `_get_random_data`. These are used outside, though, thus the editor shows them as unused. Should they maybe not be private instead? - The double naming of `BaseTestProblem` and `functions` is confusing for me. Is there a reason for this? Should we maybe change it to only use one of the two? - Only `TestCorruptedProblemsMixin.rosenbrock_problem` seems to be used from that Mixin. Should we maybe change this to not be a Mixin, but just the rosenbrock variable instad, or not have the `outlier_generator` inside the Mixin? - I think we should delete `rsample_from_base_samples`. It is not used (if my command+click works here properly) and hard to understand. Reviewed By: esantorella Differential Revision: D71198064
f682781
to
1756faa
Compare
Summary: I added doc strings (and some abstract methods). I came across the following issues doing so: - There are multiple private functions, like `_get_random_data`. These are used outside, though, thus the editor shows them as unused. Should they maybe not be private instead? - The double naming of `BaseTestProblem` and `functions` is confusing for me. Is there a reason for this? Should we maybe change it to only use one of the two? - Only `TestCorruptedProblemsMixin.rosenbrock_problem` seems to be used from that Mixin. Should we maybe change this to not be a Mixin, but just the rosenbrock variable instad, or not have the `outlier_generator` inside the Mixin? - I think we should delete `rsample_from_base_samples`. It is not used (if my command+click works here properly) and hard to understand. Reviewed By: esantorella Differential Revision: D71198064
This pull request was exported from Phabricator. Differential Revision: D71198064 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2770 +/- ##
=======================================
Coverage 99.99% 99.99%
=======================================
Files 202 202
Lines 18499 18508 +9
=======================================
+ Hits 18498 18507 +9
Misses 1 1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary: I added doc strings (and some abstract methods). I came across the following issues doing so: - There are multiple private functions, like `_get_random_data`. These are used outside, though, thus the editor shows them as unused. Should they maybe not be private instead? - The double naming of `BaseTestProblem` and `functions` is confusing for me. Is there a reason for this? Should we maybe change it to only use one of the two? - Only `TestCorruptedProblemsMixin.rosenbrock_problem` seems to be used from that Mixin. Should we maybe change this to not be a Mixin, but just the rosenbrock variable instad, or not have the `outlier_generator` inside the Mixin? - I think we should delete `rsample_from_base_samples`. It is not used (if my command+click works here properly) and hard to understand. Reviewed By: esantorella Differential Revision: D71198064
1756faa
to
48e67ff
Compare
This pull request was exported from Phabricator. Differential Revision: D71198064 |
Summary: Pull Request resolved: pytorch#2770 I added doc strings (and some abstract methods). I came across the following issues doing so: - There are multiple private functions, like `_get_random_data`. These are used outside, though, thus the editor shows them as unused. Should they maybe not be private instead? - The double naming of `BaseTestProblem` and `functions` is confusing for me. Is there a reason for this? Should we maybe change it to only use one of the two? - Only `TestCorruptedProblemsMixin.rosenbrock_problem` seems to be used from that Mixin. Should we maybe change this to not be a Mixin, but just the rosenbrock variable instad, or not have the `outlier_generator` inside the Mixin? - I think we should delete `rsample_from_base_samples`. It is not used (if my command+click works here properly) and hard to understand. Reviewed By: esantorella Differential Revision: D71198064
48e67ff
to
691572d
Compare
Summary: I added doc strings (and some abstract methods). I came across the following issues doing so: - There are multiple private functions, like `_get_random_data`. These are used outside, though, thus the editor shows them as unused. Should they maybe not be private instead? - The double naming of `BaseTestProblem` and `functions` is confusing for me. Is there a reason for this? Should we maybe change it to only use one of the two? - Only `TestCorruptedProblemsMixin.rosenbrock_problem` seems to be used from that Mixin. Should we maybe change this to not be a Mixin, but just the rosenbrock variable instad, or not have the `outlier_generator` inside the Mixin? - I think we should delete `rsample_from_base_samples`. It is not used (if my command+click works here properly) and hard to understand. Reviewed By: esantorella Differential Revision: D71198064
691572d
to
f2980d1
Compare
Summary: Pull Request resolved: pytorch#2770 I added doc strings (and some abstract methods). I came across the following issues doing so: - There are multiple private functions, like `_get_random_data`. These are used outside, though, thus the editor shows them as unused. Should they maybe not be private instead? - The double naming of `BaseTestProblem` and `functions` is confusing for me. Is there a reason for this? Should we maybe change it to only use one of the two? - Only `TestCorruptedProblemsMixin.rosenbrock_problem` seems to be used from that Mixin. Should we maybe change this to not be a Mixin, but just the rosenbrock variable instad, or not have the `outlier_generator` inside the Mixin? - I think we should delete `rsample_from_base_samples`. It is not used (if my command+click works here properly) and hard to understand. Reviewed By: esantorella Differential Revision: D71198064
This pull request was exported from Phabricator. Differential Revision: D71198064 |
f2980d1
to
971d443
Compare
This pull request has been merged in 44b6400. |
I added doc strings, and some abstract methods and we renamed some of the actually public functions, that had a leading
_
.