Description Usage Arguments Value Note References See Also
Wrapper function to perform kernel multitask regression with cv.kmr
that trains a model on training set and then predicts on test set for multiple tasks.
1 2 | predictorKMR(patientsKernelTrain, patientsKernelTest, response, drugsKernel,
lambdas = exp(-15:25), nfolds = 5, nrepeats = 1)
|
patientsKernelTrain |
Precomputed kernel Gram matrix of |
patientsKernelTest |
Precomputed kernel Gram matrix of |
response |
Matrix of observed toxicity values, of dimension |
drugsKernel |
Kernel Gram matrix of the |
lambdas |
Sequence of lambdas that must be tested to fit a cross-validated KMR model. Default is exp(-15:25). |
nfolds |
Number of folds for cross-validation. Default is 5. |
nrepeats |
Number of times the k-fold cross-validation is performed. Default is 1. |
A matrix of predicted toxicity values, of dimension m x t
, for the m
test patients responding to the t
drugs.
Multitask prediction is made, for which task relationships are encoded in drugsKernel
.
Bernard, E., Jiao, Y., Scornet, E., Stoven, V., Walter, T., and Vert, J.-P. (2017). "Kernel multitask regression for toxicogenetics." bioRxiv-171298.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.