callbacks#
Callbacks available to pass to AutoML.
Module Contents#
Functions#
Logs the exception thrown as an error. |
|
Raises the exception thrown by the AutoMLSearch object. |
|
No-op. |
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.