ridgereg-class: Ridge regression

Description Fields Examples

Description

Returns the result of the Ridge Regression

Fields

formula

a formula, format y ~ x_1 + x_2 + ... + x_n.

data

a data frame.

lambda

a hyperparameter.

Examples

1
2
3
4
data(iris)
ridgereg$new(Petal.Length~Sepal.Width+Sepal.Length, data=iris, lambda = 0)$print()
ridgereg$new(Petal.Length~Sepal.Width+Sepal.Length, data=iris, lambda = 0)$predict()
ridgereg$new(Petal.Length~Sepal.Width+Sepal.Length, data=iris, lambda = 0)$coef()

henkar91/AdvRprogr_lab7 documentation built on May 17, 2019, 9:12 a.m.