e7da65f1d65fe363c945792d5ba978d5cc6c6a86,keras/layers/core.py,Activation,__init__,#Activation#Any#,72

Before Change


    """
    def __init__(self, activation):
        self.activation = activations.get(activation)
        self.params = []
        self.regularizer = []
        self.constraint = []

    def output(self, train):
        X = self.get_input(train)
        return self.activation(X)

After Change


    """
        Apply an activation function to an output.
    """
    def __init__(self, activation):
        super(Activation,self).__init__()
        self.activation = activations.get(activation)

    def output(self, train):
        X = self.get_input(train)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 9

Instances


Project Name: keras-team/keras
Commit Name: e7da65f1d65fe363c945792d5ba978d5cc6c6a86
Time: 2015-04-27
Author: michael.d.oliver@gmail.com
File Name: keras/layers/core.py
Class Name: Activation
Method Name: __init__


Project Name: keras-team/keras
Commit Name: e7da65f1d65fe363c945792d5ba978d5cc6c6a86
Time: 2015-04-27
Author: michael.d.oliver@gmail.com
File Name: keras/layers/core.py
Class Name: Activation
Method Name: __init__


Project Name: pfnet-research/chainer-chemistry
Commit Name: 7c89c09852373f21c0cca398f33edf08344a8178
Time: 2018-02-19
Author: naruki.yoshikawa@gmail.com
File Name: tests/iterators_tests/test_balanced_serial_iterator.py
Class Name: DummySerializer
Method Name: __init__


Project Name: keras-team/keras
Commit Name: e7da65f1d65fe363c945792d5ba978d5cc6c6a86
Time: 2015-04-27
Author: michael.d.oliver@gmail.com
File Name: keras/layers/core.py
Class Name: Dropout
Method Name: __init__


Project Name: keras-team/keras
Commit Name: e7da65f1d65fe363c945792d5ba978d5cc6c6a86
Time: 2015-04-27
Author: michael.d.oliver@gmail.com
File Name: keras/layers/core.py
Class Name: RepeatVector
Method Name: __init__


Project Name: automl/auto-sklearn
Commit Name: 1c71951e7ee160421f7574dd5acb4f9a0e11723c
Time: 2016-03-22
Author: feurerm@informatik.uni-freiburg.de
File Name: autosklearn/smbo.py
Class Name: AutoMLScenario
Method Name: __init__


Project Name: keras-team/keras
Commit Name: a637960fab61b66848a36e6a5caf0204c155af01
Time: 2018-05-01
Author: francois.chollet@gmail.com
File Name: keras/engine/sequential.py
Class Name: Sequential
Method Name: __init__


Project Name: keras-team/keras
Commit Name: e7da65f1d65fe363c945792d5ba978d5cc6c6a86
Time: 2015-04-27
Author: michael.d.oliver@gmail.com
File Name: keras/layers/core.py
Class Name: Reshape
Method Name: __init__


Project Name: keras-team/keras
Commit Name: e7da65f1d65fe363c945792d5ba978d5cc6c6a86
Time: 2015-04-27
Author: michael.d.oliver@gmail.com
File Name: keras/layers/core.py
Class Name: Flatten
Method Name: __init__