elephas/optimizers.py
def deserialize(config, custom_objects=None):
    """Inverse of the `serialize` function.
    # Arguments
        config: Optimizer configuration dictionary.
        custom_objects: Optional dictionary mapping
            names (strings) to custom objects
            (classes and functions)
            to be considered during deserialization.
    # Returns
        A Keras Optimizer instance.
    """
    all_classes = {
        'sgd': SGD,
        'rmsprop': RMSprop,
        'adagrad': Adagrad,
        'adadelta': Adadelta,
        'adam': Adam
    }
    # Make deserialization case-insensitive for built-in optimizers.
    if config['class_name'].lower() in all_classes:
        config['class_name'] = config['class_name'].lower()
    return deserialize_keras_object(config,
                                    module_objects=all_classes,
                                    custom_objects=custom_objects,
                                    printable_module_name='optimizer')
Inverse of the `serialize` function.
    # Arguments
        config: Optimizer configuration dictionary.
        custom_objects: Optional dictionary mapping
            names (strings) to custom objects
            (classes and functions)
            to be considered during deserialization.
    # Returns
        A Keras Optimizer instance.
    
Inverse of the `serialize` function.
Arguments
config: Optimizer configuration dictionary.
custom_objects: Optional dictionary mapping
names (strings) to custom objects
(classes and functions)
to be considered during deserialization.
Returns
A Keras Optimizer instance.
Inverse of the ` serialize ` function . Arguments config : Optimizer configuration dictionary . custom_objects : Optional dictionary mapping names ( strings ) to custom objects ( classes and functions ) to be considered during deserialization . Returns A Keras Optimizer instance .
def deserialize(config, custom_objects=None):
    all_classes = {
        'sgd': SGD,
        'rmsprop': RMSprop,
        'adagrad': Adagrad,
        'adadelta': Adadelta,
        'adam': Adam
    }
    if config['class_name'].lower() in all_classes:
        config['class_name'] = config['class_name'].lower()
    return deserialize_keras_object(config,
                                    module_objects=all_classes,
                                    custom_objects=custom_objects,
                                    printable_module_name='optimizer')
def deserialize ( config , custom_objects = None ) : all_classes = { 'sgd' : SGD , 'rmsprop' : RMSprop , 'adagrad' : Adagrad , 'adadelta' : Adadelta , 'adam' : Adam } if config [ 'class_name' ] . lower ( ) in all_classes : config [ 'class_name' ] = config [ 'class_name' ] . lower ( ) return deserialize_keras_object ( config , module_objects = all_classes , custom_objects = custom_objects , printable_module_name = 'optimizer' )
Inverse of the `serialize` function.
Inverse of the ` serialize ` function .
"""Inverse of the `serialize` function.
    # Arguments
        config: Optimizer configuration dictionary.
        custom_objects: Optional dictionary mapping
            names (strings) to custom objects
            (classes and functions)
            to be considered during deserialization.
    # Returns
        A Keras Optimizer instance.
    """ # Make deserialization case-insensitive for built-in optimizers.
config
custom_objects