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),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

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_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_dropout


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_repeat_vector