1model = Sequential([
2 Dense(32, input_shape=(784,)),
3 Activation('relu'),
4 Dense(10),
5 Activation('sigmoid'),
6])
7
8model.compile(
9 optimizer="rmsprop",
10 loss=None,
11 metrics=None,
12 loss_weights=None,
13 weighted_metrics=None,
14 run_eagerly=None,
15 steps_per_execution=None
16)
17
18model.fit(x, y, batch_size=32, epochs=50)