I am facing some errors, while using these loss functions. so please explain me, when to use these loss functions and with the output layer units.
Asked
Active
Viewed 306 times
1 Answers
0
I don't know the exact difference between these loss functions. I think the documentation and source code should be checked. But both of these loss functions are suitable for classification models. you should notice two things:
- Your outputs should be converted to categorical: first use Sckit-learn class
LabelEncoder()
to covert strings to integers, then useto_categorical()
Keras method on your output to covert your integers to a one-hot encoding - You need to use a softmax layer as your last layer with the same size of your categories

Mohammad Talaei
- 66
- 6