def extract_activation(layer):
    """
    Extract activation from layer definition object

    Parameters
    ----------
    layer : Layer object
       Activation layer

    Returns
    -------
    string
        String value with Keras activation function

    """
    config = layer.get_config()
    return config['activation']
