Arrays used as indices must be of integer (or boolean) type

I had a similar problem using the Pystruct pystruct.learners.OneSlackSSVM.

It occured because my training labels were floats, in stead of integers. In my case, it was because I initialized the labels with np.ones, without specifying dtype=np.int8. Hope it helps.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)