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)
1Model.train_on_batch(
2 x,
3 y=None,
4 sample_weight=None,
5 class_weight=None,
6 reset_metrics=True,
7 return_dict=False,
8)
9