I have multi-class dataset and labels values range is 5 to 9. I am using SoftMax function, and sparse_categorical_crossentropy loss function.
When I give 10 units in the dense layer it works fine, although data has only 5 classes.
Why it only works with 10 but not with 5 units in output layer?
How to get it done for 5 units in output layer?
Thank you!