Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using PyTorch without helper functions ( without using torch.nn or torch.optim ) , calculate the values of a & b that best fit the model

Using PyTorch without helper functions (without using torch.nn or torch.optim), calculate
the values of a&b that best fit the model f(x) using the gradient descent algorithms with
the following:
f(x)=e-ax+2ax+b
x=[-2,-1.9,-1.8,-1.7,-1.6,-1.5,-1.4,-1.3,-1.2,-1.1,
-1,-0.8,-0.7,-0.6,-0.5,-0.4,-0.3,-0.2,-0.1,0,
0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1,
1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2.0]
y0=[6.255,6.121,6.005,5.907,5.825,5.758,5.704,5.664,5.636,5.62,
5.614,5.618,5.631,5.652,5.682,5.719,5.763,5.814,5.87,5.933,
6.0,6.072,6.149,6.231,6.316,6.405,6.497,6.593,6.691,6.793,
6.897,7.003,7.112,7.223,7.335,7.45,7.566,7.684,7.804,7.924]
image text in transcribed

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

Neo4j Data Modeling

Authors: Steve Hoberman ,David Fauth

1st Edition

1634621913, 978-1634621915

More Books

Students also viewed these Databases questions

Question

What communication problems are often associated with a severe TBI?

Answered: 1 week ago