assessPerformance_Biosigner: MLmodels biosigner function

View source: R/mod_MLmodels_fct_biosigner.R

assessPerformance_BiosignerR Documentation

MLmodels biosigner function

Description

A biosigner models assessing function. to display by confusion matrices for SVM and RF models.

Usage

assessPerformance_Biosigner(modelList, dataTest)

Arguments

modelList

Models list computed and returned inside runSVMRFmodels_Biosigner() results.

dataTest

List of new omic datasets and samples for same omics that training to test model performances. Returned by splitDatatoTrainTest().

Value

List of performances for svm and rf models (confusion matrices).

Examples

data("omic2", package = "multiSight")
splitData <- splitDatatoTrainTest(omic2, 0.8)
data.train <- splitData$data.train
data.test <- splitData$data.test

#biosignerRes <- runSVMRFmodels_Biosigner(data.train)
data("biosignerRes", package = "multiSight") 
biosignerModels <- biosignerRes$model #list of SVM/RF models for each omic.
biosignerFeats <- biosignerRes$biosignature #selected features for each omic.
perfBiosigner <- assessPerformance_Biosigner(biosignerModels, data.test)
perfBiosigner$svm$rnaRead # perf for SVM for rnaRead data block.
perfBiosigner$rf$rnaRead # perf for RF for rnaRead data block.


Fjeanneret/multiSight documentation built on April 6, 2022, 7:59 a.m.