makeRidgeLearner_no_int: Create a Ridge learner object

View source: R/ridge_learner_no_int.R

makeRidgeLearner_no_intR Documentation

Create a Ridge learner object

Description

Creates a Ridge learner object to be used in veb_boost

Usage

makeRidgeLearner_no_int(
  X,
  X_test = NULL,
  growMode = c("NA", "+*", "+", "*"),
  changeToConstant = FALSE
)

Arguments

X

is our design matrix used in training. Scaling is NOT handled by this function, and must be done by the user beforehand

X_test

is our design matrix used in testing Scaling is NOT handled by this function, and must be done by the user beforehand

growMode

is a string for if the learner should be grown (or not) If "+*", we grow mu_0 -> (mu_0 * mu_2) + mu_1 If "+", we grow mu_0 -> (mu_0 + mu_1) If "*", we grow mu_0 -> (mu_0 * mu_1) (NOTE: Not recommended if we start with k = 1) If "NA", we do not grow this learner

changeToConstant

is a logical for if constant fits should be changed to be constant

Details

A Ridge learner \beta has a prior distribution

\beta ~ N(0, \sigma_{\beta}^2 S^2)

for a fixed and given S.


stephenslab/VEB.Boost documentation built on July 2, 2023, 1 p.m.