[SOLVED] Python Problem Set-Gradient descent from scratch

30.00 $

Category: Tags: , , , , ,
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon gradient-descent-from-scratch-h7kbvw.zip (82 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
πŸ”’ Securely Powered by:
Secure Checkout
Rate this product

# Implementation of gradient descent from scratch along with newton method.

Problem statement:

Consider two functions: f1(x, y) = (x βˆ’ 2)^2 + (y βˆ’ 3)^2 and f2(x, y) = (1 βˆ’ (y βˆ’ 3))^2 + 20((x + 3) βˆ’ (y βˆ’ 3)^2)^2
Starting with (x, y) = (0, 0) run the gradient descent algorithm for each function. Run for T iterations, and
report the function value at the end of each step.

β€’ First, run with a fixed learning rate of Ξ» = 0.5

β€’ Second, run with any variant of gradient descent you want. Try to get the smallest function value
after T steps.

For f1 you are allowed only T = 10 steps. For f2 you are allowed T = 100 steps.

 

  • gradient-descent-from-scratch-h7kbvw.zip