-
Notifications
You must be signed in to change notification settings - Fork 320
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
fix EBTS bug where gen returned less than n total weight #3316
Conversation
This pull request was exported from Phabricator. Differential Revision: D69253157 |
Summary: This could happen if enought `weights` were zero here than the length of `weights` became less than `n`: https://www.internalfb.com/code/fbsource/[b9c286a9f21709eb4c964c3c24bb629b2b218c86]/fbcode/ax/models/discrete/thompson.py?lines=109-113. The `AlmostEqual` is needed to deal with numerical precision (e.g. 9.0000000002) Reviewed By: danielcohenlive Differential Revision: D69253157
0e47785
to
0e13fb3
Compare
This pull request was exported from Phabricator. Differential Revision: D69253157 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3316 +/- ##
==========================================
- Coverage 95.74% 95.70% -0.05%
==========================================
Files 533 533
Lines 52516 52537 +21
==========================================
- Hits 50280 50278 -2
- Misses 2236 2259 +23 ☔ View full report in Codecov by Sentry. |
Summary: This could happen if enought `weights` were zero here than the length of `weights` became less than `n`: https://www.internalfb.com/code/fbsource/[b9c286a9f21709eb4c964c3c24bb629b2b218c86]/fbcode/ax/models/discrete/thompson.py?lines=109-113. The `AlmostEqual` is needed to deal with numerical precision (e.g. 9.0000000002) This also makes `batch_size` optional in `BenchmarkMethod`. A `batch_size` of `None`, means the batch size from the initial trial is used. For bandits, this means the cardinality of the search space becomes the batch size after the factorial node. Differential Revision: D69253157
0e13fb3
to
68a2f1e
Compare
This pull request was exported from Phabricator. Differential Revision: D69253157 |
Summary: This could happen if enought `weights` were zero here than the length of `weights` became less than `n`: https://www.internalfb.com/code/fbsource/[b9c286a9f21709eb4c964c3c24bb629b2b218c86]/fbcode/ax/models/discrete/thompson.py?lines=109-113. The `AlmostEqual` is needed to deal with numerical precision (e.g. 9.0000000002) This also makes `batch_size` optional in `BenchmarkMethod`. A `batch_size` of `None`, means the batch size from the initial trial is used. For bandits, this means the cardinality of the search space becomes the batch size after the factorial node. Differential Revision: D69253157
68a2f1e
to
632333f
Compare
This pull request was exported from Phabricator. Differential Revision: D69253157 |
Summary: This could happen if enought `weights` were zero here than the length of `weights` became less than `n`: https://www.internalfb.com/code/fbsource/[b9c286a9f21709eb4c964c3c24bb629b2b218c86]/fbcode/ax/models/discrete/thompson.py?lines=109-113. The `AlmostEqual` is needed to deal with numerical precision (e.g. 9.0000000002) This also makes `batch_size` optional in `BenchmarkMethod`. A `batch_size` of `None`, means the batch size from the initial trial is used. For bandits, this means the cardinality of the search space becomes the batch size after the factorial node. Reviewed By: mgarrard Differential Revision: D69253157
632333f
to
d51fc7e
Compare
This pull request was exported from Phabricator. Differential Revision: D69253157 |
d51fc7e
to
2702216
Compare
Summary: This could happen if enought `weights` were zero here than the length of `weights` became less than `n`: https://www.internalfb.com/code/fbsource/[b9c286a9f21709eb4c964c3c24bb629b2b218c86]/fbcode/ax/models/discrete/thompson.py?lines=109-113. The `AlmostEqual` is needed to deal with numerical precision (e.g. 9.0000000002) This also makes `batch_size` optional in `BenchmarkMethod`. A `batch_size` of `None`, means the batch size from the initial trial is used. For bandits, this means the cardinality of the search space becomes the batch size after the factorial node. Reviewed By: mgarrard, esantorella Differential Revision: D69253157
This pull request was exported from Phabricator. Differential Revision: D69253157 |
2702216
to
416df5c
Compare
Summary: This could happen if enought `weights` were zero here than the length of `weights` became less than `n`: https://www.internalfb.com/code/fbsource/[b9c286a9f21709eb4c964c3c24bb629b2b218c86]/fbcode/ax/models/discrete/thompson.py?lines=109-113. The `AlmostEqual` is needed to deal with numerical precision (e.g. 9.0000000002) This also makes `batch_size` optional in `BenchmarkMethod`. A `batch_size` of `None`, means the batch size from the initial trial is used. For bandits, this means the cardinality of the search space becomes the batch size after the factorial node. Reviewed By: mgarrard, esantorella Differential Revision: D69253157
This pull request was exported from Phabricator. Differential Revision: D69253157 |
Summary: This could happen if enought `weights` were zero here than the length of `weights` became less than `n`: https://www.internalfb.com/code/fbsource/[b9c286a9f21709eb4c964c3c24bb629b2b218c86]/fbcode/ax/models/discrete/thompson.py?lines=109-113. The `AlmostEqual` is needed to deal with numerical precision (e.g. 9.0000000002) This also makes `batch_size` optional in `BenchmarkMethod`. A `batch_size` of `None`, means the batch size from the initial trial is used. For bandits, this means the cardinality of the search space becomes the batch size after the factorial node. Reviewed By: mgarrard, esantorella Differential Revision: D69253157
416df5c
to
292917d
Compare
This pull request was exported from Phabricator. Differential Revision: D69253157 |
This pull request has been merged in 0809eb3. |
Summary:
This could happen if enought
weights
were zero here than the length ofweights
became less thann
: https://www.internalfb.com/code/fbsource/[b9c286a9f21709eb4c964c3c24bb629b2b218c86]/fbcode/ax/models/discrete/thompson.py?lines=109-113.The
AlmostEqual
is needed to deal with numerical precision (e.g. 9.0000000002)Reviewed By: danielcohenlive
Differential Revision: D69253157