Skip to content

Fix/issue 18 boundary float noise#22

Merged
499602D2 merged 4 commits intomainfrom
fix/issue-18-boundary-float-noise
Apr 15, 2026
Merged

Fix/issue 18 boundary float noise#22
499602D2 merged 4 commits intomainfrom
fix/issue-18-boundary-float-noise

Conversation

@499602D2
Copy link
Copy Markdown
Owner

Tries to address findings in issue #18.

BO converging on a box constraint emits near-duplicate floats
(500.0 vs 500.0000000000001) that hash to different arm signatures
and slip past Ax's should_deduplicate. Fix by picking a
magnitude-aware default `digits` on float `Dimension.range`s and
rounding in `coerce_value` before any value reaches Ax.
- `ask()` on an uninitialized backend now raises a clear RuntimeError
  instead of falling through to an Ax AssertionError.
- `tell()` on an unevaluated case points the caller at batch_process
  instead of the deep "output None for case" message.
- `sys.exit` on optimizer completion becomes `OptimizationComplete`,
  caught in Session on both local-ask and offload branches.
- Drop the "Cannot proceed: no trials received (TODO fix)" raise;
  an empty get_next_trials is legitimate and already handled upstream.
Two slow end-to-end tests driving Session through pitzDaily in
DockerLocal: a 12-cycle single-dim run with cold-reload round-trip,
and a 2-dim parallel-batch run (4 cycles × 2 jobs) that reproduces
the #18 boundary-convergence pattern end-to-end. ~80s combined.
@499602D2 499602D2 added the domain: optimizer Ax backend, objectives, search space label Apr 15, 2026
@499602D2 499602D2 merged commit 92b2eb5 into main Apr 15, 2026
6 checks passed
@499602D2 499602D2 deleted the fix/issue-18-boundary-float-noise branch April 15, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: optimizer Ax backend, objectives, search space

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ax backend error: "Arm already exists with name … which doesn't match given arm name" when attaching trials

1 participant