Skip to main content
๐Ÿ› Bug HuntAI AI & ML Hardโšก+35 XP

Wrong Loss Function

This binary classifier uses the wrong loss.

๐Ÿ› Find the bug
1model.compile(optimizer="adam",
2 loss="categorical_crossentropy")
๐Ÿ› The bug is on line 2

๐Ÿ”ง Select the correct fix: