phenotypic.tune.freeze_value#
- phenotypic.tune.freeze_value(key: str, trials: list[Trial], *, top_k: int = 10) Any[source]#
The central-tendency value of
keyacross the top-k explore trials (§6).Numeric values → the median; non-numeric (categorical/bool) → the mode (“the value good configs tend to use”, robust to single-trial noise). Only the
top_klowest-cost non-failed trials that actually carrykeycount.- Parameters:
- Returns:
The pinned value for the frozen knob.
- Raises:
ValueError – If no top-k trial carries
key(nothing to freeze at).- Return type: