Find the minimum value of the function shown below by the stochastic gradient descent method. Also, explain the algorithm and the changes in behavior when the parameters are changed.
Find the minimum value of the function shown below by the stochastic gradient descent method. Also, explain the algorithm and the changes in behavior when the parameters are changed.
When you enter the point $ P = (x, y) $ and the angle $ t $ (degree) on the 2D Euclidean coordinates, rotate it counterclockwise by $ t $ from the origin $ O = (0, 0) $ Create a function that outputs the coordinates.
P = [1, 0]
t = 45
[0.70710678, 0.70710678]
P = [0, 1]
t = 30
[-0.5 , 0.8660254]
When you enter the point $ P = (x, y) $ on the two-dimensional coordinates and the integer $ n $, the positive $ with the point $ P $ as one vertex and the origin $ O = (0, 0) $ as the center of gravity Create a function that outputs the vertices of an n $ polygon and draw its regular $ n $ polygon.
P = [0, 1]
n = 5
P = [0, 1]
n = 7
Line $ P_n $ and point $ P_1 $, point $ P_i $ and $ P_ {i + 1} $ for a set of regular $ n $ polygonal vertices $ P_i (i = 1 ... n) $ You can draw a regular $ n $ polygon by connecting with, but you can draw a star figure by devising the order of connecting the lines. Draw the following shape.