-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Titanic example -problem with 2nd last cell. #492
Comments
Can you please copy and paste the full stack trace from the |
ValueError Traceback (most recent call last) /home/andrewcz/miniconda3/lib/python3.5/site-packages/numpy/lib/npyio.py in recfromcsv(fname, **kwargs) /home/andrewcz/miniconda3/lib/python3.5/site-packages/numpy/lib/npyio.py in genfromtxt(fname, dtype, comments, delimiter, skip_header, skip_footer, converters, missing_values, filling_values, usecols, names, excludelist, deletechars, replace_space, autostrip, case_sensitive, defaultfmt, unpack, usemask, loose, invalid_raise, max_rows) ValueError: Some errors were detected ! |
Cheers Randy, the above is the full error. |
great piece of software :)! |
It does indeed look like it's an issue reading the dataset. Specifically, numpy's |
Yer, i am using the data in the example. |
NOTE: Make sure that the class is labeled 'class' in the data filetpot_data = np.recfromcsv('/home/andrewcz/tpot/tutorials/data/titanic_train.csv', delimiter=',', dtype=np.float64) |
the tpot data file is correct? |
I see the problem now. We're using numpy's
|
In the meantime, @AIAdventures, you can change that code to use pandas: import pandas as pd
tpot_data = pd.read_csv('/home/andrewcz/tpot/tutorials/data/titanic_train.csv')
features = tpot_data.drop('class', axis=1).values
training_features, testing_features, training_classes, testing_classes =
train_test_split(features, tpot_data['class'].values, random_state=42) |
@rhiever I think we could go back to using pandas. If we use TFlearn in the future version of TPOT, the |
yer, from my experience pandas data frames are more reliable than numpy arrays. |
Great, please feel free to reopen the issue if you have any other questions! |
Hi all!
Want to enter in the automl comp.
Trying out the titanic example to get some familiarity with the software.
Running into some trouble with the above cell.
using python 3.6 on a linux machine.
The text was updated successfully, but these errors were encountered: