__call__#

Stopper.__call__(trial_id: str, result: Dict[str, Any]) → bool[source]#

Returns true if the trial should be terminated given the result.

Parameters:
  • trial_id (str) – The ID of the trial that reported the result.

  • result (Dict[str, Any]) – The result the trial reported.

Returns:

True to stop the trial, False to let it continue.

Return type:

bool