Files
2026-06-26 20:50:07 +08:00

23 lines
792 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""Optuna objective, search space, and diverse top-N selector (doc 06).
Owns the Bayesian search wiring. Must **not** know broker specifics — those
live in the instrument config. The objective samples parameters from the
declared search space, runs the engine, and returns a score; the selector
picks 23 **diverse** finalists (not the top-N-by-score, which are usually
near-clones of one peak).
"""
from .objective import Constraints, ObjectiveConfig, build_objective, score_metrics
from .search_space import SearchSpace, suggest_params
from .selector import select_diverse_topn, param_distance
__all__ = [
"SearchSpace",
"suggest_params",
"ObjectiveConfig",
"Constraints",
"build_objective",
"score_metrics",
"select_diverse_topn",
"param_distance",
]