Learn R Programming

gettingtothebottom (version 3.2)

example.quadratic.approx: Gradient Descent Algorithm - Plots Depicting How Different Choices of Alpha Result in Differing Quadratic Approximations

Description

example.quadratic.approx Shows how the quadratic approximations for the function in Example 1 change with choice of alpha.

Usage

example.quadratic.approx(alpha1 = 0.01, alpha2 = 0.12)

Arguments

alpha1
A smaller step-size for the gradient descent algorithm.
alpha2
A larger step-size for the gradient descent algorithm. (alpha2 > alpha1)

Examples

Run this code
example.quadratic.approx(alpha1=0.01, alpha2=0.12)

Run the code above in your browser using DataLab