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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started