Canonicalise LearnerND hull seeding without duplicate collisions#486
Open
basnijholt wants to merge 4 commits into
Open
Canonicalise LearnerND hull seeding without duplicate collisions#486basnijholt wants to merge 4 commits into
basnijholt wants to merge 4 commits into
Conversation
basnijholt
commented
Oct 1, 2025
8660486 to
cf12afb
Compare
- Reset _next_bound_idx in remove_unfinished() so discarded pending bound points can be asked again (previously they were silently retired and the domain corners never sampled). - Replace the unreachable 'raise StopIteration' with a RuntimeError; StopIteration would surface as a confusing PEP 479 RuntimeError from the generator in _ask_and_tell_pending anyway. - Drop the brittle message-matching try/except in _try_adding_pending_point_to_simplex; _is_known_point makes that path unreachable and its cleanup was incomplete. - Scale _is_known_point tolerance with coordinate magnitude instead of flooring at an absolute 1e-10, which was too coarse for tiny domains. - Simplify the regression test: derive the drifted hull vertex instead of magic constants, use pytest.importorskip, and remove the half that re-installed the old implementation to assert it fails. - Add a regression test for the remove_unfinished bound-point reset.
adf619d to
60e84c1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #470