Function to retrieve the prediction matrix from a SIAMCAT object

pred_matrix(siamcat, verbose=1)

# S4 method for siamcat
pred_matrix(siamcat, verbose = 1)

Arguments

siamcat

(Required). A siamcat-class object that contains a prediction matrix

verbose

integer, if the slot is empty, should a message be printed? values can be either 0 (no output) or 1 (print message)

Value

A matrix containing predictions or NULL

Details

The functions returns a matrix containing the predictions for all samples across the different cross-validation repeats. See make.predictions for more information.

Examples

data(siamcat_example)
temp <- pred_matrix(siamcat_example)
head(temp)
#>                        CV_rep1    CV_rep2
#> CCIS27304052ST-3-0 0.013826209 0.01250622
#> CCIS15794887ST-4-0 0.003308079 0.01174887
#> CCIS74726977ST-3-0 0.796261593 0.99644852
#> CCIS16561622ST-4-0 0.019947255 0.00478131
#> CCIS79210440ST-3-0 0.091392436 0.33659086
#> CCIS82507866ST-3-0 0.016429169 0.13891886