

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


AYA ALALI [email protected] University of jordan 0189980 Abstract —gradient descent in these days found around us in our daily life like (digital map, temperature gradient..etc) also Stochastic gradient descent SGD is well known method for regressions and classification task (1) This paper provides an overview of gradient descent and discus how it work and an example of algorithm about it and mathematical of GD numerical and how we can calculate it. Keywords—GD, SGD, LR , Figure 1 : Gradient: which arrows and represents steepest ascents I. INTRODUCTION Gradient descent is an optimization algorithm that used when training a machine learning models. Also it’s for finding a local minimum of a differentiable functions. (2), You start of defining the initial parameters values and from there gradients descent uses calculus to recursively adjust the values. if we know to understand this concepts, it's important to know about gradients. We should know that Gradient descent is a first order repeated optimization algorithm for finding a local
A .formula B= a – y Δf(a) Which is B : is the next position of our climber A: represents his current position Δf(a) : is simply the direction of the steepest descent. Instead of climbing up a hill, think of gradient descents as hiking down to the bottom of a dene. The minus sign refers to the minimization part of gradient descents. The gamma in the middle is a waiting factor and the gradient term f is simply the direction of the steepest descent. Imagine you have a machine learning problems and want to train your algorithm with gradient descent to minimize your cost function J and reach its local minimum by tweaking its parameters .(3) III. LEARNING RATE How big the steps are gradients descent takes into the direction of the local minimum are determine by the learning rate, which figures out how fast or slow we will move towards the optimal weights. for gradient descent to reach local minimum we must set the learning rate to an appropriate values, which is nor too low neither too high. This is important because if the steps it takes are too big, it may not reach the local minimum because it bounces back and forth between the convex function of gradient descents. XXX-X-XXXX-XXXX-X/XX/$XX.00 ©20XX IEEE
Figure 2 : Learning rates (Towards data science) So, the learning rate should never be too high or too low because this reasons. You can check if you are learning rate is doing well by plotting it on a graph. IV. EXAMPLES OF GD. This is exactly what GD does .Imagine a blindfolded man who wants to climb to the top of a hill with the fewest steps along the way as possible. As he comes closer to the top, however, his steps will get smaller and smaller to avoid overshooting it. Imagine the image below illustrates our hill from a top-down view and the red arrows are the steps of our climber.(4) We will show you an example of table in GD size Num.of phase GD Graph cut Exp 1 100100 5 60,0 0. Exp2 100400 5 78,98 0. Exp3 100200 4 67.8 0. Brain 200100 6 98,9 56. Computation times in seconds for gradient descent V. EXAMPLE OF SOLVE NUMERICALLY ON MY OWN SELF A. formula ∇f(x,y) = 2xi + 4yj Parameters are in : t = Iteration number 𝜂 = Learning rate j = Iterator for variable number, represents the jth variable ∇f(x[t]) = Value of the gradient vector of f at iteration t B. Solve is : Two iterations of the algorithm, T=2 and 𝜂=0.1 are shown below Initial t= x[0] = (4,3) This is just a randomly chosen point At t = 1 x[1] = x[0] – 𝜂∇f(x[0]) x[1] = (4,3) – 0.1(8,12) x[1] = (3.2,1.8) At t= x[2] = x[1] – 𝜂∇f(x[1]) x[2] = (3.2,1.8) – 0.1(6.4,7.2) x[2] = (2.56,1.08) If you keep running the above iterations, the procedure will eventually end up at the point where the function is minimum, i.e., (0,0). VI. MY AN EXAMOLE CODE REFERENCES The template will number citations consecutively within brackets [1]. The sentence punctuation follows the bracket [2]. Refer simply to the reference number, as in [3]—do not use “Ref. [3]” or “reference [3]” except at the beginning of a sentence: “Reference [3] was the first ...” Number footnotes separately in superscripts. Place the actual footnote at the bottom of the column in which it was cited. Do not put footnotes in the abstract or reference list. Use letters for table footnotes. Unless there are six authors or more give all authors’ names; do not use “et al.”. Papers that have not been published, even if they have been submitted for publication, should be cited as “unpublished” [4]. Papers that have been accepted for publication should be cited as “in press” [5]. Capitalize only the first word in a paper title, except for proper nouns and element symbols. For papers published in translation journals, please give the English citation first, followed by the original foreign-language citation [6]. [1] G. Eason, B. Noble, and I. N. Sneddon, “On certain integrals of Lipschitz-Hankel type involving products of Bessel functions,” Phil. Trans. Roy. Soc. London, vol. A247, pp. 529–551, April 1955. (references) [2] J. Clerk Maxwell, A Treatise on Electricity and Magnetism, 3rd ed., vol.