For some reason, it still identifies my labels_seq_np as a list although i used np.asarray(label_seq) so im unable to label_seq_np -1 . Please help
np.asarray
returns a new numpy array and doesn’t modify the parameter in-place.
Please assign the return value to a variable before performing an arithmetic operation on it.
Hi Skanda, if this is unresolved it seems to be a problem with using asarray you mind find it works if you use something like the following
[snippet removed by mentor]