Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Build a multi layer perceptron using back propogation Algorithm in pytorch. Given a fully connected Neural Network (MLP) as follows: Input [ , , ]:

Build a multi layer perceptron using back propogation Algorithm in pytorch.

Given a fully connected Neural Network (MLP) as follows:

  1. Input [ , , ]: nodes; 12
  2. -hidden fully connected layers (exclude output layer) with bias of 2 + 1 nodes;
  3. Output(Prediction): 1 node;
  4. Use the ReLU activation function for all hidden layers.

You are required to implement the following:

  1. Build this NN model using PyTorch Modules (backprop by autograd);
  2. Build this NN model from scratch. Both forward and backward functions should be implemented by yourself.

3. For both NN models: a) Generateinputdata [ , , ] in[0,1) drawn from a uniform distribution;

b) Generatelabel =( 1 1 + 2 2 + + )/;

c) Calculate MSE loss = (Prediction )2;

d) Use batch size of 1, i.e., do one-time forward propagation with one data point;

e) Use =10, =10.

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

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions

Question

5. Who should facilitate the focus group?

Answered: 1 week ago

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago