- This event has passed.
4:30 PM – AI and Machine Learning – Gamas
July 13 @ 3:00 pm - 4:00 pm
Today We Did
- We created a Kaggle project that can predict cat and dog’s breed.
Homework
- Modify predict function, extract the prediction accuracy from result. How to get the accuracy, get the index number from “tensor(3)”, means index 3 and get the accuracy from the last element of the list. To get index 3 out of tensor(3), you have to use ”
breed_index = prediction[1].item()
('Bombay', tensor(3), tensor([1.9846e-03, 8.5111e-03, 1.3550e-02, 4.1458e-01, 6.4996e-04, 8.8210e-04, 4.0432e-01, 2.5348e-03, 2.2059e-02, 3.8750e-04, 1.4592e-02, 4.8519e-03, 1.2583e-04, 2.9019e-04, 1.2401e-03, 1.9319e-03, 6.6724e-05, 9.5905e-04, 1.7696e-03, 8.3719e-03, 4.0659e-03, 2.3159e-03, 1.2247e-02, 3.6509e-03, 1.5126e-02, 1.3389e-03, 1.5531e-03, 2.2940e-02, 2.7218e-03, 3.2357e-04, 1.7264e-03, 4.4403e-04, 1.1117e-02, 9.4806e-05, 2.5987e-04, 1.8149e-04, 1.6242e-02]))