DaMiR.EnsL_Test {DaMiRseq} | R Documentation |
This function tests the models learned by the DaMiR.EnsL_Train function, on a test set
DaMiR.EnsL_Test(data, classes, EnsL_model)
data |
A SummarizedExperiment object or a data frame/matrix of normalized expression data. Rows and Cols should be observations and features, respectively. |
classes |
A class vector with |
EnsL_model |
A list with the models trained by DaMiR.EnsL_Train function. |
This function implements the test step of DaMiR.EnsembleLearning2cl function
A dataframe containing the predictions on the testset
Mattia Chiesa, Luca Piacentini
# use example data: data(selected_features) data(df) set.seed(1) # only for the example: # speed up the process setting a low 'iter' argument value; # for real data set use default 'iter' value (i.e. 100) or higher: # Tr_res <- DaMiR.EnsL_Train( # selected_features,classes=df$class, fSample.tr.w=0.6, iter=3, # cl_type=c("RF","LR")) # DaMiR.EnsembleLearning2cl_Test(selected_features, #classes=df$class,Tr_res)