Skip to content

docs: update COCO examples to record history; add detector/fix script + tests#124

Closed
Anselmoo wants to merge 20 commits intomainfrom
feature/benchmarks-coco-bbob
Closed

docs: update COCO examples to record history; add detector/fix script + tests#124
Anselmoo wants to merge 20 commits intomainfrom
feature/benchmarks-coco-bbob

Conversation

@Anselmoo
Copy link
Owner

This PR updates COCO benchmark examples across many optimizer docstrings so examples record history (use track_history=True) and save run artifacts using benchmarks.save_run_history. It also adds:

  • scripts/fix_coco_examples.py: detector and fixer (dry-run / apply) for COCO examples
  • tests/test_coco_examples.py: static test ensuring COCO examples record history or save runs
  • Updates to .specify/memory/constitution.md to a concrete constitution and sync report
  • Guidance to .github/copilot-instructions.md to run uv sync --all-groups --all-extras when adding dev packages

Notes:

  • The change is focused on documentation and tests to make examples useful for COCO/visualization pipelines.
  • Some long-standing style issues exist in other tests/files (pre-commit hooks flagged them); they were not introduced here and will be addressed separately.

Validation performed locally:

  • Ran tests/test_coco_examples.py (passes)
  • Ran linting/formatting where possible; some repository-wide style issues pre-existed and are tracked separately.

Copilot AI and others added 20 commits December 24, 2025 15:19
… files

Co-authored-by: Anselmoo <13209783+Anselmoo@users.noreply.github.com>
Co-authored-by: Anselmoo <13209783+Anselmoo@users.noreply.github.com>
Co-authored-by: Anselmoo <13209783+Anselmoo@users.noreply.github.com>
…ion docs

Co-authored-by: Anselmoo <13209783+Anselmoo@users.noreply.github.com>
Co-authored-by: Anselmoo <13209783+Anselmoo@users.noreply.github.com>
Co-authored-by: Anselmoo <13209783+Anselmoo@users.noreply.github.com>
Co-authored-by: Anselmoo <13209783+Anselmoo@users.noreply.github.com>
Co-authored-by: Anselmoo <13209783+Anselmoo@users.noreply.github.com>
…files

Co-authored-by: Anselmoo <13209783+Anselmoo@users.noreply.github.com>
…ate Pydantic models

Co-authored-by: Anselmoo <13209783+Anselmoo@users.noreply.github.com>
- Updated import statements across multiple files to change the import path of AbstractOptimizer from `opt.abstract_optimizer` to `opt.abstract`.

- This change enhances consistency and maintainability of the codebase by standardizing the import structure.
@Anselmoo Anselmoo closed this Dec 25, 2025
@Anselmoo Anselmoo deleted the feature/benchmarks-coco-bbob branch December 25, 2025 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments