Skip to contents

The shared core: grlaso, grelas, grn011, grn013 add penalties to it, grn007 differentiates it, greast / grmgd / grlrnc iterate it.

Usage

morie_geron_linreg_mse_cost_grmse(X, y, theta)

Arguments

X, y, theta

Design, targets and parameters.

Value

List with cost, rmse, residuals, predictions.

Examples

morie_geron_linreg_mse_cost_grmse(X = 5L, y = 5L, theta = 0.5)
#> $cost
#> [1] 6.25
#> 
#> $rmse
#> [1] 2.5
#> 
#> $residuals
#> [1] -2.5
#> 
#> $predictions
#> [1] 2.5
#> 
#> $estimate
#> [1] 6.25
#> 
#> $n
#> [1] 1
#>