estimator.util.binary_search#
- estimator.util.binary_search(f, start, stop, param, step=1, smallerf=<function <lambda>>, log_level=5, *args, **kwds)[source]#
Searches for the best value in the interval [start,stop] depending on the given comparison function.
- Parameters:
start – start of range to search
stop – stop of range to search (exclusive)
param – the parameter to modify when calling f
smallerf – comparison is performed by evaluating
smallerf(current, best)
step – initially only consider every steps-th value