Skip to content

suggestion count fix#91

Merged
langdal merged 2 commits into
mainfrom
langdal/suggestion-count-fix
Jun 7, 2026
Merged

suggestion count fix#91
langdal merged 2 commits into
mainfrom
langdal/suggestion-count-fix

Conversation

@langdal

@langdal langdal commented Jun 7, 2026

Copy link
Copy Markdown
Member

No description provided.

langdal and others added 2 commits June 7, 2026 14:51
ProcessOptimizer's default ask strategy (stbr_fill) routes multi-point asks on
a fitted model through stbr_scipy() — 20 SciPy minimisations over the
one-hot-transformed space. On categorical-heavy experiments (e.g. 31 transformed
dims) a count-2 request ran ~30 min (synchronous hang / worker timeout). The
constrained branch already used cl_min; the unconstrained branch fell through to
the slow default. Always use cl_min: count 1 is unchanged (strategy is ignored
for a single point), multi-point is fast and categorical-safe.

Adds a watchdog-guarded regression test and ADR 0004.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…thin a budget

Re-introduce stbr_fill space-filling for the extra points of an unconstrained
batch, but only when affordable: a deterministic cost estimate
(_estimate_stbr_seconds) — dominated by categorical one-hot dimensions — must
fit STBR_TIME_BUDGET_SECONDS (default 10s, calibrated on the CPython venv).
Otherwise fall back to cl_min. The estimate is a pure function of the space and
batch size, so the chosen strategy (and the suggestions) stay reproducible
across machines. Updates ADR 0004 and adds gate tests.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@langdal
langdal merged commit 788b03d into main Jun 7, 2026
2 checks passed
@langdal
langdal deleted the langdal/suggestion-count-fix branch June 7, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant