6
$\begingroup$

I am implementing a CNN model for image classification where I am learning about loss functions. There are several types of loss functions to determine error. However, how do we find out which function is suitable for a image multi-classification model?

$\endgroup$
5
$\begingroup$

If you have two classes (i.e. binary classification), you should use a binary crossentropy loss.

If you have more than two you should use a categorical crossentropy loss.

$\endgroup$
0
$\begingroup$

For image classification in keras, with multiple categories, categorical_crossentropy is a good start.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.