Closed leocob closed 6 months ago
For one fold, something like this should work:
obj_big_sp <- test[[1]][[1]]
ind_train_fold <- obj_big_sp$ind.train
ind_val_fold <- setdiff(ind.train, ind_train_fold)
predict(obj_big_sp, X, ind.row = ind_val_fold, ind.col = attr(test, "ind.col"),
covar.row = covar[ind_val_fold, ])
Makes sense, thank you! :)
On the explanation of CMSA, I read:
"A 'regularization path' of models is trained on the inner training set and the corresponding predictions (scores) for the inner validation set are computed"
Is it possible in some way to extract these scores from each inner validation?
Exploring the
test
object from the tutorial ofbig_spLobReg
I can't seem to find them: