deephyper.keras.callbacks.import_callback#

deephyper.keras.callbacks.import_callback(cb_name: str) Type[tensorflow.keras.callbacks.Callback][source]#

Import a callback class from its name.

Parameters:

cb_name (str) – class name of the callback to import fron tensorflow.keras.callbacks or deephyper.keras.callbacks.

Raises:

DeephyperRuntimeError – raised if the class name of the callback is not registered in corresponding packages.

Returns:

the class corresponding to the given class name.

Return type:

tensorflow.keras.callbacks.Callback