Skip to content

Commit 35ba5df

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent aa47df0 commit 35ba5df

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

machine_learning/neural_networks/cnn_mnist.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@
5757
model.add(layers.Dense(10, activation="softmax"))
5858

5959
# Compile the model
60-
model.compile(optimizer="adam", loss="categorical_crossentropy",
61-
metrics=["accuracy"])
60+
model.compile(optimizer="adam", loss="categorical_crossentropy", metrics=["accuracy"])
6261

6362
# Display the model summary
6463
model.summary()

machine_learning/neural_networks/fully_connected_mnist.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@
5353

5454
# Compile the model
5555
model.compile(
56-
optimizer="adam", loss="sparse_categorical_crossentropy",
57-
metrics=["accuracy"]
56+
optimizer="adam", loss="sparse_categorical_crossentropy", metrics=["accuracy"]
5857
)
5958

6059
# Train the model on the MNIST training data

0 commit comments

Comments
 (0)