View source: R/mod_MLmodels_fct_diablo.R
assessPerformance_Diablo | R Documentation |
A diablo models assessing function.
assessPerformance_Diablo(splsdaModel, dataTest)
splsdaModel |
sPLS-DA model computed and returned inside runSPLSDAmodels_Diablo() results. |
dataTest |
List of new omic data sets and samples for same omics that training to test model performances. Returned by splitDatatoTrainTest(). |
Confusion matrix for sPLS-DA model
data("omic2", package = "multiSight") splitData <- splitDatatoTrainTest(omic2, 0.8) data.train <- splitData$data.train data.test <- splitData$data.test #diabloRes <- runSPLSDA(data.train) data("diabloRes", package = "multiSight") diabloModels <- diabloRes$model #sPLS-DA model using all omics. diabloFeats <- diabloRes$biosignature #selected features for each omic. #perfDiablo <- assessPerformance_Diablo(diabloModels, data.test) #perfDiablo$Omic1 # sPLS-DA's perf for omic1 data block.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.