Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I want to evaluate the model and print accuracy p.s ai am building a feedforward NN In [11]: M Adding the second hidden Layer model.add(tf,
I want to evaluate the model and print accuracy
In [11]: M Adding the second hidden Layer model.add(tf, keras. layers. Dense(unitsiz4, activationa'relu')) In [12] : M A Adding the ootput Loyer model.add(tf. keras. layers.Dense(units=3, activatione'bigioid')) In [13]: H Compiting the nodel model. compile(opt inizer' 'adan', loss='squared hnge', metricsm[ [accuracy']) In [14]: M * Training the model. model. fit ( X,train, y_train, epochs =10, batch_size=32) Epoch 1/10 Epoch 2/10 Epoch 3/10 Epoch 4/10 Epoch 5/19 Fpoch 6/10 Epoch 7/10 Epoch 8/10 Epoch 9/10 Epoch 10/10 Out:\{14]1 kkeras.callbacks.History at 01161992 daed? In {15}1 M A Ivotuating the nodet y pred = made 1 , predict (x test ) p.s ai am building a feedforward NN
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