Answered step by step
Verified Expert Solution
Link Copied!

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
p.s ai am building a feedforward NN
image text in transcribed
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 )

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

Microsoft SQL Server 2012 Unleashed

Authors: Ray Rankins, Paul Bertucci

1st Edition

0133408507, 9780133408508

More Books

Students also viewed these Databases questions

Question

=+ Who do you think is right? Why?

Answered: 1 week ago