Yes @tom. It will work if we subtract 1 from labels. but my question is different.
I have done another classification problem and in that the labels started from 0.
Now I am doing another classification problem and in here the labels start from 1.
Why is this happening? and how to prevent that?