DaMiR.EnsembleLearning2cl_Test {DaMiRseq} | R Documentation |
This function tests the models learned by the DaMiR.EnsembleLearning2cl_Training function, on a test set
DaMiR.EnsembleLearning2cl_Test(data, classes, models_List)
data |
A data frame of normalized expression data. Rows and Cols should be, respectively, observations and features |
classes |
A class vector with |
models_List |
A list with the models trained by DaMiR.EnsembleLearning2cl_Training 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.EnsembleLearning2cl_Training( # 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)