ridgereg_train: Train function

Description Usage Arguments Examples

Description

A train function for the model ridgereg

Usage

1
2
3
ridgereg_train(lambda = 0, cross_val = FALSE, fold_count = 10,
  repeat_count = 10, data = NULL, formula = NULL, set_seed = 12345,
  p = 0.7, normalize = TRUE)

Arguments

lambda

Your lambda values. A numeric vector

cross_val

False or True

fold_count

If cross_val=TRUE. Then how many values will it fold.

repeat_count

If cross_val=TRUE. Then how many times will it be cross-validation.

data

Your data. If data=NULL the data BostonHousing is used

formula

Your formula. If formula=NULL the formula tax ~ zn + indus + rad + medv is used

set_seed

Your seed. If set_seed=NULL then is no seed used.

p

The proportion of trainging and test if BostonHousing data is used

normalize

Normalize or not.

Examples

1
2
#library(Lab7SpaghettiBolognese)
#ridgereg_train(seq(0,100,10))

vasterlund/Lab7_Albin_Eric documentation built on May 7, 2019, 3:57 a.m.