Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I cannot figure out why I can't reshape this in python 3. Can someone please help? 303 label2 = np_utils . to_categorical ( label ,
I cannot figure out why I can't reshape this in python 3. Can someone please help?
303 label2 = np_utils.to_categorical(label, category) --> 304 data_np = data_np.reshape(len(data_np),42,28,1) 305 306 #train,test split ValueError: cannot reshape array of size 141240000 into shape (120000,42,28,1)In [3]: H ip-model,Xtr.y tr, Xte.y-te- cnn func . CNN mage-recognition(df cat,df-tiger, df lion , df dog, sample-3eeee, binary-False,\ convlayer -64, neuron -1ee, batchsize -128, epoch -20) ValueError ipython-input-3-1062fdfb1e> Traceback (most recent call last) in
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