View source: R/function_cv_safety_checks.R
DTD_cv_lambda_test_input_generic | R Documentation |
tests common input parameters to the cxx and R implementation of DTD_cv_lambda.
DTD_cv_lambda_test_input_generic( lambda.seq, tweak.start, n.folds, lambda.length, train.data.list, cv.verbose, warm.start )
lambda.seq |
numeric vector or NULL or "none": Over this series of lambdas the FISTA will be optimized. If 'lambda.seq' is set to NULL, a generic series of lambdas - depending on the dimensions of the training set - will be generated. If 'lambda.seq' is "none", no cross validation is done. Only one model with lambda = 0 is trained on the complete data set. |
tweak.start |
numeric vector, starting vector for the DTD algorithm. |
n.folds |
integer, number of buckets in the cross validation. |
lambda.length |
integer, how many lambdas will be generated (only used if lambda.seq is NULL) |
train.data.list |
list, with two entries, a numeric matrix each, named 'mixtures' and 'quantities' Within this list the train/test cross validation will be done. (see Vignette 'browseVignettes("DTD")' for details) |
cv.verbose |
logical, should information about the cv process be printed to the screen? |
warm.start |
logical, should the solution of a previous model of the cross validation be used as start in the next model. Notice, that the warm.start starts with the most unpenalized model. @return NULL, or it throws an error |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.