These do not match. If you try to directly use y=2,4,6,9 in the loss formula, it will break because the softmax probabilities are stored in an array indexed from 1…N (as @TMosh said earlier), not your original label numbers.
– Keep Learning AI with DeepLearning.AI - Girijesh
Thanks
So I need to translate the real y values to integers running from 1 to N.
And I’ll need to store this translation and convert back to show the true values.