View source: R/ridge_learner.R
makeRidgeLearner | R Documentation |
Creates a Ridge learner object to be used in veb_boost
makeRidgeLearner(
X,
X_test = NULL,
growMode = c("NA", "+*", "+", "*"),
changeToConstant = FALSE,
scale_X = c("sd", "max", "NA")
)
X |
is our design matrix used in training. Scaling is handled by this function |
X_test |
is our design matrix used in testing Scaling is handled by this function |
growMode |
is a string for if the learner should be grown (or not)
If |
changeToConstant |
is a logical for if constant fits should be changed to be constant |
scale_X |
is a string for if/how the columns of X should be scaled. 'sd' scales by the standard deviations of the variables. 'max' scales by the maximum absolute value (so variables are on the [-1, +1] scale). 'NA' performs no scaling. |
A Ridge learner \beta
has a prior distribution
\beta ~ N(0, \sigma_{\beta}^2 S^2)
for a fixed and given S
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.