- If the targets are one-hot encoded, use
categorical_crossentropy
- Examoles of one-hot encodings:
- [1, 0, 0]
- [0, 1, 0]
- [0, 0, 1]
- Examoles of one-hot encodings:
- If the targets are integers, use
sparse_categorical_crossentropy
- Examples of integer encodings
- 1
- 2
- 3
- Examples of integer encodings