Solved by Lukas_Lansche in post #5 
              
              
                Hi Frank, 
Thank you so much for your advice.  I got it running! 
I did exactly what you said, tried it with the cpu and got the following error: 
IndexError: Target 5 is out of bounds.

So then I rewrote my class labels to a range of 0 to nClass - 1 and tried again and it worked for cpu and for cud…