
Last chance! 50% off unlimited learning
Sale ends in
get_validation
selects a random sample of matrix indices for regularization parameter selection.
get_validation(p, n, fraction = 0.1, seed = 12345)
n <- 5
p <- 4
fraction <- 0.1
Theta <- get_validation(p,n,fraction)
M <- matrix(rnorm(n*p),p,n)
YT <- t(M)
YT[Theta$ThetaV] <- NA
Y <- t(YT)
Theta
Run the code above in your browser using DataLab