Question: python 3.6 with ftlearn and skit-learn I tried to read csv file and build model using CNN but that gave me error to read that

python 3.6 with ftlearn and skit-learn

I tried to read csv file and build model using CNN but that gave me error to read that data set

I have nine coulmns in my csv file and last coulm is class label which is 0,1

# Load CSV file, indicate that the last column represents labels from tflearn.data_utils import load_csv data, labels = load_csv('car.csv', target_column=0, categorical_labels=True, n_classes=2)

# Build neural network net = tflearn.input_data(shape=[None, 8]) net = tflearn.fully_connected(net, 32) net = tflearn.fully_connected(net, 32) net = tflearn.fully_connected(net, 2, activation='softmax') net = tflearn.regression(net)

# Define model model = tflearn.DNN(net) # Start training (apply gradient descent algorithm) model.fit(data, labels, n_epoch=10, batch_size=16, show_metric=True)

types of error:

--------------------------------- Run id: 3D2RDF 
TypeError: object of type 'NoneType' has no len() 

How can I fix that error ?

Thanks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!