tflearn to_categorical type error
问题 I keep getting a typeError when I try to use to_categorical from tflearn . The output error is:` trainY = to_categorical(y = trainY, nb_classes=2) File "C:\Users\saleh\Anaconda3\lib\site-packages\tflearn\data_utils.py", line 46, in to_categorical return (y[:, None] == np.unique(y)).astype(np.float32) TypeError: list indices must be integers or slices, not tuple This is the reproducible code that I am trying to run: import tflearn from tflearn.data_utils import to_categorical from tflearn