()
| 11 | |
| 12 | |
| 13 | def create_keras_model(): |
| 14 | model = Sequential() |
| 15 | model.add(Conv2D(32, (4, 4), activation='relu')) |
| 16 | model.add(Conv2D(32, (4, 4), activation='relu')) |
| 17 | model.add(MaxPooling2D(pool_size=(2, 2))) |
| 18 | model.add(Dropout(0.25)) |
| 19 | model.add(Flatten()) |
| 20 | model.add(Dense(128, activation='relu')) |
| 21 | model.add(Dropout(0.5)) |
| 22 | model.add(Dense(10, activation='softmax')) |
| 23 | model.compile(loss='categorical_crossentropy', optimizer='adam', metrics=["accuracy"]) |
| 24 | return model |
| 25 | |
| 26 | |
| 27 | # create the classifier |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…