MCPcopy
hub / github.com/hyperopt/hyperopt / validate_loss_threshold

Function validate_loss_threshold

hyperopt/base.py:232–240  ·  view source on GitHub ↗
(loss_threshold)

Source from the content-addressed store, hash-verified

230
231
232def validate_loss_threshold(loss_threshold):
233 if loss_threshold is not None and (
234 not isinstance(loss_threshold, numbers.Number)
235 or isinstance(loss_threshold, bool)
236 ):
237 raise Exception(
238 "The loss_threshold argument should be None or a numeric value. "
239 f"Given value: {loss_threshold}"
240 )
241
242
243class Trials:

Callers 3

fminFunction · 0.90
__init__Method · 0.90
fminMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected