Description Usage Arguments Details Value
cost()
.
1 | cost(X, y, theta, lambda)
|
X |
Design matrix X. |
y |
Vector of observations. |
theta |
Vector of starting values for coefficients of length |
lambda |
Regularisation parameter. |
Internal function supplied to optim
which calculates cost function
Returns the cost of the current parameters theta.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.