Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Question 10 of 110
Free Preview · 110 of 364 · questions 1–110 of 364 are free. Sign up free to sync your progress across devices.
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
Below explanation from AI Your task is a 3‑class single‑label image classification problem: drivers_license, passport, credit_card Each image belongs to exactly one of these classes.This means the model should output a probability distribution over 3 classes, e.g.:[0.85, 0.10, 0.05] For this setup, the correct loss is:✅ Categorical cross‑entropy Used when: You have multiple classes Each sample belongs to one class Labels are one‑hot encoded, e.g.drivers_license → [1,0,0] This matches your scenario perfectly.
model is set up for mutually exclusive single-label classification (meaning an image can only be one thing at a time)
Because sparse categorical cross-entropy is for integer values.