Skip to content

Add genetic search for hyperparameter optimization - #526

Closed
ahbaqdadi wants to merge 7 commits into
RubixML:masterfrom
ahbaqdadi:codex/genetic-search
Closed

ahbaqdadi wants to merge 7 commits into
RubixML:masterfrom
ahbaqdadi:codex/genetic-search

Conversation

@ahbaqdadi

Copy link
Copy Markdown

Summary

Add GeneticSearch, a meta-estimator for discrete hyperparameter spaces. It follows the existing search estimator API and uses tournament selection, uniform crossover, mutation, and elitism to evolve candidates. It avoids evaluating duplicate combinations, caps evaluations at the size of the search space, and supports setup, scoring results, prediction, and serialization.

Add focused tests, a benchmark, a reference guide, a tuning guide comparison, MkDocs navigation, and a changelog entry.

Validation

  • vendor/bin/phpunit tests/Base/GeneticSearchTest.php --no-progress — 10 tests, 35 assertions
  • composer test -- --no-progress — 2,150 tests, 51,343 assertions (38 skipped for optional extensions)
  • vendor/bin/phpstan analyse -c phpstan.neon --memory-limit 1G --debug --no-progress — no errors
  • composer check — clean
  • One-iteration benchmark smoke run — passed

@ahbaqdadi ahbaqdadi closed this Oct 21, 2026
@ahbaqdadi
ahbaqdadi deleted the codex/genetic-search branch October 21, 2026 09:10
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