023331ec2a7b0086abfc81eca16c84a1692ee653,keras/activations.py,,get,#Any#,52

Before Change


def get(identifier):
    if identifier is None:
        return linear
    return get_from_module(identifier, globals(), "activation function")

After Change


def get(identifier):
    if identifier is None:
        return linear
    if isinstance(identifier, six.string_types):
        identifier = str(identifier)
        return deserialize(identifier)
    elif callable(identifier):
        return identifier
    else:
        raise ValueError("Could not interpret "
                         "activation function identifier:", identifier)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 16

Instances


Project Name: keras-team/keras
Commit Name: 023331ec2a7b0086abfc81eca16c84a1692ee653
Time: 2017-02-09
Author: francois.chollet@gmail.com
File Name: keras/activations.py
Class Name:
Method Name: get


Project Name: keras-team/keras
Commit Name: 023331ec2a7b0086abfc81eca16c84a1692ee653
Time: 2017-02-09
Author: francois.chollet@gmail.com
File Name: keras/metrics.py
Class Name:
Method Name: get


Project Name: keras-team/keras
Commit Name: 023331ec2a7b0086abfc81eca16c84a1692ee653
Time: 2017-02-09
Author: francois.chollet@gmail.com
File Name: keras/initializers.py
Class Name:
Method Name: get