Quiz · 5 questions
🏋️ Training — compile, fit, and the Training Loop
compile, fit, callbacks
Level 0Keras Apprentice
0 XP0/97 lessons0/20 achievements
0/120 XP to next level120 XP to go0% complete
Quiz
01What does from_logits=True mean in a loss function?
Hint
from_logits=True tells the loss function to apply softmax/sigmoid internally.
02Which callback stops training when validation loss stops improving?
Hint
EarlyStopping monitors a metric and stops training after 'patience' epochs with no improvement.
03What optimizer is generally recommended as a starting point?
Hint
Adam with default settings (lr=1e-3) is the standard starting optimizer.
04What does class_weight in model.fit() do?
Hint
class_weight gives higher loss weight to underrepresented classes, helping models handle imbalanced datasets.
05What does model.fit() return?
Hint
model.fit() returns a History object.
Comments 0
🔔 Reply notifications (sign in)Sign in — Please sign in to comment.
No comments yet — be the first.