assessPerformance_Diablo: MLmodels diablo function

View source: R/mod_MLmodels_fct_diablo.R

assessPerformance_DiabloR Documentation

MLmodels diablo function

Description

A diablo models assessing function.

Usage

assessPerformance_Diablo(splsdaModel, dataTest)

Arguments

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().

Value

Confusion matrix for sPLS-DA model

Examples

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.


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