b673a26860c1598e7ef66a301743a2ff1d96b61f,examples/keras_integration.py,,create_keras_model,#,16

Before Change


    Should be passed to KerasClassifier in the Keras scikit-learn API.
    
    model = Sequential()
    model.add(Dense(512, activation="relu", input_shape=(784, )))
    model.add(Dropout(0.2))
    model.add(Dense(512, activation="relu"))
    model.add(Dropout(0.2))

After Change


    Should be passed to KerasClassifier in the Keras scikit-learn API.
    
    model = Sequential()
    model.add(Conv2D(32, kernel_size=(3, 3), activation="relu", input_shape=(28, 28, 1)))
    model.add(MaxPooling2D(pool_size=(2, 2)))
    model.add(Dropout(0.25))
    model.add(Flatten())
    model.add(Dense(128, activation="relu"))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: modAL-python/modAL
Commit Name: b673a26860c1598e7ef66a301743a2ff1d96b61f
Time: 2018-04-16
Author: theodore.danka@gmail.com
File Name: examples/keras_integration.py
Class Name:
Method Name: create_keras_model


Project Name: oarriaga/face_classification
Commit Name: 4ca83a3646f5e83a3bd104c408acdb906dd4952c
Time: 2017-05-05
Author: arriaga.camargo@gmail.com
File Name: src/models.py
Class Name:
Method Name: simple_CNN


Project Name: keras-team/keras
Commit Name: b5a02391e003c33c8f8258a7e3d0736503c3c048
Time: 2017-03-15
Author: farizrahman4u@gmail.com
File Name: examples/babi_memnn.py
Class Name:
Method Name: