0% found this document useful (0 votes)
42 views

Do The Same Process On The Example Above With 4 Different Starting Points and 3 Different Coefficients Using Gradient Decent

The document describes running gradient descent on two functions with different starting points and coefficients. For each function, gradient descent is run 4 times with 3 different starting points and coefficients. For the first function, the starting points are (1,1), (0.5,0.5), and (0,0.5) with coefficients of 0.01, 0.05, and 0.005. The second function uses starting points of (1,0.5), (1,3), and (0,0) with coefficients of 0.001, 0.05, and 0.01.

Uploaded by

Duong The
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views

Do The Same Process On The Example Above With 4 Different Starting Points and 3 Different Coefficients Using Gradient Decent

The document describes running gradient descent on two functions with different starting points and coefficients. For each function, gradient descent is run 4 times with 3 different starting points and coefficients. For the first function, the starting points are (1,1), (0.5,0.5), and (0,0.5) with coefficients of 0.01, 0.05, and 0.005. The second function uses starting points of (1,0.5), (1,3), and (0,0) with coefficients of 0.001, 0.05, and 0.01.

Uploaded by

Duong The
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Do the same process on the example above with 4 different starting points and 3 different

coefficients using Gradient Decent.


1. Function 1

x  2 2 1 − x +1 2 − y 2
z = 3 (1 − x ) 2e
− x 2 −( y +1)
− 10  − x3 − y 5  e− x − y − e ( )
2
2

5  3

Code:

Coefficient 1: 0.01
X0 =1
Starting point 1:
Y0 = 1
Coefficient 2: 0.05
X 0 = 0.5
Starting point 2:
Y0 = 0.5
Coefficient 3: 0.005
X0 = 0
Starting point 3:
Y0 = 0.5
2. Function 2

x2
z = sin ( x + y ) + 1 − + e− y
2

40
Code:

Coefficient 1: 0.001
X0 =1
Starting point 1:
Y0 = 0.5
Coefficient 2: 0.05
X 0 = 1.0
Starting point 2:
Y0 = 3.0
Coefficient 3: 0.01
X0 = 0
Starting point 3:
Y0 = 0

You might also like