get_validation {cvxbiclustr} | R Documentation |
get_validation
selects a random sample of matrix indices for regularization parameter selection.
get_validation(p, n, fraction = 0.1, seed = 12345)
p |
Number of rows |
n |
Number of columns |
fraction |
Fraction of entries for hold out |
seed |
Seed for random number generator |
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