Skip to content

Score TPE acquisition candidates as ordered arrays - #280

Merged
y0z merged 1 commit into
mainfrom
perf/issue-269-ordered-candidates
Oct 15, 2026
Merged

y0z merged 1 commit into
mainfrom
perf/issue-269-ordered-candidates

Conversation

@y0z

@y0z y0z commented Oct 14, 2026

Copy link
Copy Markdown
Member

Generate and score TPE acquisition candidates as arrays in the models' shared parameter order, avoiding parameter-name hashing and string copies for discarded candidates. Convert only the winning candidate to a parameter map, while sharing sampling and density calculations with the existing named API.

Closes #269.

Original implementation by @tkng, cherry-picked from e4b4aab without code changes, preserving the original commit author.

- Generate candidates in the model's sorted parameter order.
- Avoid parameter-name hashing and string copies during candidate generation
  and scoring.
- Share generation and density calculations with the named sample API.
- Convert only the winning candidate to the public parameter map.
@y0z
y0z marked this pull request as ready for review October 15, 2026 07:02
@y0z
y0z merged commit baee0ec into main Oct 15, 2026
8 checks passed
@y0z
y0z deleted the perf/issue-269-ordered-candidates branch October 15, 2026 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multivariate TPE candidate evaluation repeatedly hashes and copies parameter names

2 participants