fix(4.2):代码块
This commit is contained in:
@@ -334,7 +334,7 @@ print('y_pred=',y_test.data)
|
||||
|
||||
```python
|
||||
model = Sequential([Dense(32, input_shape=(784,)),
|
||||
Activation('relu'),Dense(10),Activation('softmax')])
|
||||
Activation('relu'),Dense(10),Activation('softmax')])
|
||||
# 你也可以通过 .add() 方法简单地添加层:
|
||||
model = Sequential()
|
||||
model.add(Dense(32, input_dim=784))
|
||||
|
||||
Reference in New Issue
Block a user