Description Usage Arguments Value
Perform k-fold cross-validation for each task using cv.glmnet
.
1 2 | RunTBTCrossvalidation(X = NULL, task.specific.features = list(), Y,
lambda.vec, num.folds = 10, num.threads = 1, verbose = TRUE, ...)
|
X |
N by J input matrix of features common to all tasks. |
task.specific.features |
List of features which are specific to each task. Each entry contains an N by J2 matrix for one particular task (where columns are features). List has to be ordered according to the columns of Y. |
Y |
N by K output matrix for every task. |
lambda.vec |
Vector of regularization parameters. |
num.folds |
Number of folds. |
num.threads |
Number of threads to use. |
verbose |
Be verbose. |
... |
Additional parameters passed to
|
List containing
cv.results |
data.frame with cross-validation errors for different parameters. |
full.model |
Full model trained on the whole data set. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.