Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I want the solution in Python language Part 1: a) Check the code from mnist_mlp,py and run it. b) Leave it with only one hidden

I want the solution in Python language

image text in transcribedimage text in transcribed

Part 1: a) Check the code from mnist_mlp,py and run it. b) Leave it with only one hidden layer, remove the dropouts and run it again. c) Change the activation of the hidden layer to a "sigmoi d, the loss function to mse (mean squared error). d) Change the optimization algorithm to "sgd" (Stochastic Gradient Descent). Part 2: a) Check the code from mnist cnn.py and run it. b) Add a Max Poo 11D layer after the first convolutional layer, and a dropout of 25% after it. Also, change the optimization algorithm to "adam". Part 3: a) Check the code from lstm. text generation.py and run it. b) Change the length of the inputs to 80 characters. c) Change the length back to its original size and load the previously trained model, with the following syntax: model. load_weights ('model_latm_text.h.') d) Train the same network for 50 epochs with Isaac Asimov's tale "The Last Question", available at the_last_question.txt. For the sake of time, remove the callback parameter from the model.fit (...) function and add a call to on epoch end (0,0) at the end of the program, so that you can check text generated by the model. Part 4: a) Check the code from data_handler.py and convlstm. py and run it. b) Change the dropout rate on the LSTM layer to 80%. c) Train the network with only the 6 first features (columns) of the data

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

Database Theory Icdt 97 6th International Conference Delphi Greece January 8 10 1997 Proceedings Lncs 1186

Authors: Foto N. Afrati ,Phokion G. Kolaitis

1st Edition

3540622225, 978-3540622222

More Books

Students also viewed these Databases questions

Question

What liability accounts are related to payroll?

Answered: 1 week ago

Question

Explain the concept of shear force and bending moment in beams.

Answered: 1 week ago

Question

Why do mergers and acquisitions have such an impact on employees?

Answered: 1 week ago

Question

2. Describe the functions of communication

Answered: 1 week ago