MCPcopy Create free account
hub / github.com/modAL-python/modAL / create_keras_model

Function create_keras_model

examples/deep_bayesian_active_learning.py:13–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12
13def 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…