Skip to content
#

tflearn

Here are 152 public repositories matching this topic...

nicechester
nicechester commented Jun 13, 2019

load_csv line can be since there's columns_to_ignore param's supported

data, labels = load_csv('titanic_dataset.csv', target_column=0, columns_to_ignore=[2, 7], categorical_labels=True, n_classes=2)

and we don't need to do that in preprocess()

def preprocess(passengers):
    for i in range(len(passengers)):
        passengers[i][1] = 1. if passengers[i][1] == 'female' else 0.

Improve this page

Add a description, image, and links to the tflearn topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the tflearn topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.