bf4dab3501c62836f94ea17d2f0e198348f5293d,tests/keras/layers/test_core.py,,test_maxout_dense,#,155

Before Change




def test_maxout_dense():
    layer = core.MaxoutDense(10, 10, input_shape=(20,))
    _runner(layer)


def test_naming():
    layer = core.Dense(2, input_dim=2)

After Change


    from keras import regularizers
    from keras import constraints

    layer_test(core.MaxoutDense,
               kwargs={"output_dim": 3},
               input_shape=(3, 2))

    layer_test(core.MaxoutDense,
               kwargs={"output_dim": 3,
                       "W_regularizer": regularizers.l2(0.01),
                       "b_regularizer": regularizers.l1(0.01),
                       "activity_regularizer": regularizers.activity_l2(0.01),
                       "W_constraint": constraints.MaxNorm(1),
                       "b_constraint": constraints.MaxNorm(1)},
               input_shape=(3, 2))


def test_highway():
    from keras import regularizers
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 18

Instances


Project Name: keras-team/keras
Commit Name: bf4dab3501c62836f94ea17d2f0e198348f5293d
Time: 2016-03-31
Author: francois.chollet@gmail.com
File Name: tests/keras/layers/test_core.py
Class Name:
Method Name: test_maxout_dense


Project Name: keras-team/keras
Commit Name: bf4dab3501c62836f94ea17d2f0e198348f5293d
Time: 2016-03-31
Author: francois.chollet@gmail.com
File Name: tests/keras/layers/test_core.py
Class Name:
Method Name: test_highway


Project Name: keras-team/keras
Commit Name: bf4dab3501c62836f94ea17d2f0e198348f5293d
Time: 2016-03-31
Author: francois.chollet@gmail.com
File Name: tests/keras/layers/test_core.py
Class Name:
Method Name: test_maxout_dense


Project Name: keras-team/keras
Commit Name: bf4dab3501c62836f94ea17d2f0e198348f5293d
Time: 2016-03-31
Author: francois.chollet@gmail.com
File Name: tests/keras/layers/test_core.py
Class Name:
Method Name: test_dense