Skip to content
Snippets Groups Projects
Commit 08c8b063 authored by michael.divia's avatar michael.divia
Browse files

Migrated from SoftMax to Logits

parent e15bb05c
Branches
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ for i in range(4):
# --- Predict ---
predictions = model.predict(img_array, verbose=0)
probabilities = predictions[0]
probabilities = tf.nn.softmax(predictions[0])
predicted_class_index = np.argmax(probabilities)
predicted_label = class_names[predicted_class_index]
confidence = 100 * probabilities[predicted_class_index]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment