Description Usage Arguments Details Value Examples
Function to extract the feature weights from a SIAMCAT object
1 2 3 4 | feature_weights(siamcat, verbose=1)
## S4 method for signature 'siamcat'
feature_weights(siamcat, verbose = 1)
|
siamcat |
(Required). A siamcat-class object that contains trained models |
verbose |
integer, if the slot is empty, should a message be printed?
values can be either |
The function extracts the weight matrix from all trained models (see weight_matrix) and computes several metrics on the feature weights:
mean.weight
- mean weight across trained models
median.weight
- median weight across trained models
sd.weight
- standard deviation of the weight across trained
models
mean.rel.weight
- mean relative weight across
trained models (each model is normalized by the absolute of all weights)
median.rel.weight
- median relative weight across
trained models
sd.rel.weight
- standard deviation of the relative
weight across trained models
percentage
- percentage of models in which this feature was
selected (i.e. non-zero)
A dataframe containing mean/median feature weight and
additional info or NULL
1 2 3 | data(siamcat_example)
temp <- feature_weights(siamcat_example)
head(temp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.