Method | Description | |
---|---|---|
Regularize ( |
Applies regularization to the current gradient
|
|
Regularize ( double j, |
Applies regularization to the current cost
|
public Regularize ( |
||
gradient | Current gradient | |
theta | Current theta | |
m | int | Training records |
lambda | double | Regularization constant |
return |
public Regularize ( double j, |
||
j | double | Current cost |
theta | Current theta | |
m | int | Training records |
lambda | double | Regularization constant |
return | double |