Skip to content

Commit

Permalink
had to forget to save again
Browse files Browse the repository at this point in the history
  • Loading branch information
erinmgraham committed Nov 23, 2023
1 parent 5f944b4 commit c3614ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions episodes/scripts/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@
# use our current best model to predict probability of each class on new test set
predictions = model_best.predict(test_images)

# convert predictions to class labels
predicted_labels = np.argmax(predictions, axis=1)

# create a list of classnames
class_names = ['airplane', 'automobile', 'bird', 'cat', 'deer', 'dog', 'frog', 'horse', 'ship', 'truck']

Expand All @@ -49,6 +46,9 @@
# inspect
print(prediction_df.head())

# convert predictions to class labels
predicted_labels = np.argmax(predictions, axis=1)
print(predicted_labels)

# Step 8. Measuring Performance

Expand Down

0 comments on commit c3614ac

Please sign in to comment.