bayes_halving_search_cv.Dimension#

class bayes_halving_search_cv.Dimension(name, spec)#

One axis of the grid: sorted values, integer index addressing.

coord(index)#

Normalized coordinate of an index (numeric dims).

index_of(value)#

Exact match first; numeric dims fall back to nearest grid value.

snap(target)#

Nearest index to a (possibly off-grid) numeric target value.