View source: R/experiment_utils.R
ridge_init | R Documentation |
Initializes matrices needed for ridge regression to estimate the expected rewards of different arms.
ridge_init(p, K)
p |
Integer. Number of covariates. Must be a positive integer. |
K |
Integer. Number of arms. Must be a positive integer. |
A list containing initialized matrices R_A
, R_Ainv
, b
, and theta
for each arm.
p <- 3
K <- 5
init <- ridge_init(p, K)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.