callbacks#

Callbacks available to pass to AutoML.

Module Contents#

Functions#

log_error_callback

Logs the exception thrown as an error.

raise_error_callback

Raises the exception thrown by the AutoMLSearch object.

silent_error_callback

No-op.

Attributes Summary#

Contents#

evalml.automl.callbacks.log_error_callback(exception, traceback, automl, **kwargs)[source]#

Logs the exception thrown as an error.

Will not throw. This is the default behavior for AutoMLSearch.

Parameters
  • exception – Exception to log.

  • traceback – Exception traceback to log.

  • automl – AutoMLSearch object.

  • **kwargs – Other relevant keyword arguments to log.

evalml.automl.callbacks.logger#
evalml.automl.callbacks.raise_error_callback(exception, traceback, automl, **kwargs)[source]#

Raises the exception thrown by the AutoMLSearch object.

Also logs the exception as an error.

Parameters
  • exception – Exception to log and raise.

  • traceback – Exception traceback to log.

  • automl – AutoMLSearch object.

  • **kwargs – Other relevant keyword arguments to log.

Raises

exception – Raises the input exception.

evalml.automl.callbacks.silent_error_callback(exception, traceback, automl, **kwargs)[source]#

No-op.