You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just using the load.csv method returns an error. Why do I need to debug a quickstart?
import numpy as np
import tflearn
# Download the Titanic dataset
from tflearn.datasets import titanic
titanic.download_dataset('titanic_dataset.csv')
# Load CSV file, indicate that the first column represents labels
from tflearn.data_utils import load_csv
data, labels = load_csv('titanic_dataset.csv', target_column=0,
categorical_labels=True, n_classes=2)
Gives this error. Tensorflow by itself works perfectly by the way.
Traceback (most recent call last):
File "titanic.py", line 10, in <module>
data, labels = load_csv('./titanic_dataset.csv', target_column=0, categorical_labels=True, n_classes=2)
File "/home/clive/.envs/tflearn/lib/python3.4/site-packages/tflearn/data_utils.py", line 805, in load_csv
target = to_categorical(target, n_classes)
File "/home/clive/.envs/tflearn/lib/python3.4/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, not tuple
The text was updated successfully, but these errors were encountered:
Just using the load.csv method returns an error. Why do I need to debug a quickstart?
Gives this error. Tensorflow by itself works perfectly by the way.
The text was updated successfully, but these errors were encountered: