Description Usage Arguments Value Author(s) Examples
Purged k-fold CV with embargo
1 | purged_k_CV(feaMat, k = 5, gam = 0.01)
|
feaMat |
a data.frame for feature matrix with the first column being the label |
k |
number of folds for k-fold CV |
gam |
gamma for embargo |
a list of k data.frame, each containing a test set and a training set
Larry Lei Hua
1 2 3 4 5 | feaMat <- data.frame(Y = c(1,1,0,1,0),
V = c(2,4,2,4,1),
t1Fea = c(2,5,8,14,20),
tLabel = c(4,12,16,23,38))
purged_k_CV(feaMat, k=2, gam=0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.