Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
asRot0 committed Sep 18, 2024
2 parents 7d69b82 + 35ba5df commit 2b02162
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions machine_learning/neural_networks/cnn_mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@
model.add(layers.Dense(10, activation="softmax"))

# Compile the model
model.compile(optimizer="adam", loss="categorical_crossentropy",
metrics=["accuracy"])
model.compile(optimizer="adam", loss="categorical_crossentropy", metrics=["accuracy"])

# Display the model summary
model.summary()
Expand Down
3 changes: 1 addition & 2 deletions machine_learning/neural_networks/fully_connected_mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@

# Compile the model
model.compile(
optimizer="adam", loss="sparse_categorical_crossentropy",
metrics=["accuracy"]
optimizer="adam", loss="sparse_categorical_crossentropy", metrics=["accuracy"]
)

# Train the model on the MNIST training data
Expand Down

0 comments on commit 2b02162

Please sign in to comment.