The function runs nonlinear optimization of l2-penalty to train compression for a single gene

l2Magic(need, train, seed = 1218, lambda = 0.1)

Arguments

need

vector, numeric vector of gene that is needed

train

matrix, numeric expression matrix of training data

seed

numeric, random seed

lambda

numeric, penalty parameter

Value

list with coefficients and predictive R2