DaMiR.EnsembleLearning2cl_Test {DaMiRseq}R Documentation

Test Binary Classifiers

Description

This function tests the models learned by the DaMiR.EnsembleLearning2cl_Training function, on a test set

Usage

DaMiR.EnsembleLearning2cl_Test(data, classes, models_List)

Arguments

data

A data frame of normalized expression data. Rows and Cols should be, respectively, observations and features

classes

A class vector with nrow(data) elements. Each element represents the class label for each observation. Two different class labels are allowed

models_List

A list with the models trained by DaMiR.EnsembleLearning2cl_Training function.

Details

This function implements the test step of DaMiR.EnsembleLearning2cl function

Value

A dataframe containing the predictions on the testset

Author(s)

Mattia Chiesa, Luca Piacentini

Examples

# 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)


[Package DaMiRseq version 1.8.0 Index]