example.alpha: Gradient Descent Algorithm - Plots Depicting Gradient Descent...

Description Usage Arguments Author(s) Examples

View source: R/gradientdescent.R

Description

example.alpha Plots the function values for gradient descent in Example 1 (without the intercept) given a particular value for alpha.

Usage

1

Arguments

alpha

Step-size for the gradient descent algorithm.

Author(s)

Jocelyn T. Chi

Examples

1
2

Example output

Loading required package: ggplot2
Loading required package: grid
Loading required package: Matrix
Minimum function value:
 38.80753

Coefficient(s):
 2.113576

Minimum function value not attained. A better result might be obtained by decreasing the step size or increasing the number of iterations.

gettingtothebottom documentation built on May 29, 2017, 8:28 p.m.