deephyper.contrib.callbacks.utils.import_callback

deephyper.contrib.callbacks.utils.import_callback

deephyper.contrib.callbacks.utils.import_callback(cb_name: str)Type[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.contrib.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