Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions

Question

How much time/resource do we think this piece of work will take?

Answered: 1 week ago