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 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.')

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

Students also viewed these Databases questions

Question

Define and give an example of value-chain analysis.

Answered: 1 week ago