correcting typos
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
TITLE: Week 44, Convolutional Neural Networks (CNN)
|
||||
AUTHOR: Morten Hjorth-Jensen {copyright, 1999-present|CC BY-NC} at Department of Physics, University of Oslo & Department of Physics and Astronomy and National Superconducting Cyclotron Laboratory, Michigan State University
|
||||
AUTHOR: Morten Hjorth-Jensen {copyright, 1999-present|CC BY-NC} at Department of Physics, University of Oslo, Norway
|
||||
DATE: October 28-November 1
|
||||
|
||||
|
||||
@@ -1131,7 +1131,7 @@ def create_convolutional_neural_network_keras(input_shape, receptive_field,
|
||||
model.add(layers.Dense(n_neurons_connected, activation='relu', kernel_regularizer=regularizers.l2(lmbd)))
|
||||
model.add(layers.Dense(n_categories, activation='softmax', kernel_regularizer=regularizers.l2(lmbd)))
|
||||
|
||||
sgd = optimizers.SGD(lr=eta)
|
||||
sgd = optimizers.SGD(learning_rate=eta)
|
||||
model.compile(loss='categorical_crossentropy', optimizer=sgd, metrics=['accuracy'])
|
||||
|
||||
return model
|
||||
@@ -1294,7 +1294,7 @@ layer with 10 outputs and a softmax activation.
|
||||
model.add(layers.Flatten())
|
||||
model.add(layers.Dense(64, activation='relu'))
|
||||
model.add(layers.Dense(10))
|
||||
Here's the complete architecture of our model.
|
||||
# Here's the complete architecture of our model
|
||||
|
||||
model.summary()
|
||||
!ec
|
||||
|
||||
Reference in New Issue
Block a user