#Error in oneHot depth must be =2, but it is 1

4 messages · Page 1 of 1 (latest)

tardy kernel
#

Hey so I got the error
Error in oneHot: depth must be >=2, but it is 1

I've been trying to make a pose classifier using coding train's video, I asked my doubt on stack overflow here https://stackoverflow.com/questions/73365664/uncaught-in-promise-error-error-error-in-onehot-depth-must-be-2-but-it-i?noredirect=1#comment129819267_73365664

while I realize why I'm getting the error now, can anyone help me out in resolving it? I'm a beginner here I'd be really grateful for the help..thanks!!

gilded quarry
#

You should one hot encode the labels

#

Since you have 4 labels, you should create an array with 4 values

#

The label should match the index from the label pools