weight_matrix-methods.Rd
Function to retrieve the feature weights from a SIAMCAT object
weight_matrix(siamcat, verbose=1) # S4 method for siamcat weight_matrix(siamcat, verbose = 1)
siamcat | (Required). An instance of siamcat-class that contains trained models |
---|---|
verbose | integer, if the slot is empty, should a message be printed?
values can be either |
A matrix containing the feature weights or NULL
The function extracts the feature weights from all trained models acorss all cross-validation folds and repeats.
#> Model_1 Model_2 Model_3 #> unclassified Fusobacterium [c:1482] 0.3031917 -40.0841072 8.05693 #> unclassified Fusobacterium [c:1481] 1.9150166 -43.6224319 27.88116 #> Pseudoflavonifractor capillosus [h:1579] 14.9229676 0.3963019 41.60059