computeCost: computeCost

View source: R/LinearRegression.R

computeCostR Documentation

computeCost

Description

computing the cost J

Usage

computeCost(X, y, theta, lambda = 0)

Arguments

X

x values (a column of 1 was added)

y

y values

theta

theta values

Details

The gradient descent algorithm was to minimize the cost function.

Value

cost J

Author(s)

Guangchuang Yu https://yulab-smu.top


GuangchuangYu/mlass documentation built on Nov. 25, 2024, 4:08 a.m.