View source: R/LinearRegression.R
computeCost | R Documentation |
computing the cost J
computeCost(X, y, theta, lambda = 0)
X |
x values (a column of 1 was added) |
y |
y values |
theta |
theta values |
The gradient descent algorithm was to minimize the cost function.
cost J
Guangchuang Yu https://yulab-smu.top
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.