Description Usage Arguments Value Author(s)
Compute the Cost Function for Logistic Regression.
1 2 | compute_cost(x, y, theta, epsilon = 1e-05, regu_factor = NULL,
regu_method = "ridge", ...)
|
x |
Matrix with the predictor variables |
y |
Matrix with the target variable |
theta |
Matrix with the theta's values for sigmoid function |
epsilon |
Numeric value |
regu_factor |
Regularization Factor for Ridge Regularization Regression |
regu_method |
Regularization Method. At this moment, only "ridge" available |
... |
Other possible arguments |
Returns the cost function
Alberto Almuiña
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.