weight_matrix-methods: Retrieve the weight matrix from a SIAMCAT object

weight_matrixR Documentation

Retrieve the weight matrix from a SIAMCAT object

Description

Function to retrieve the feature weights from a SIAMCAT object

Usage

weight_matrix(siamcat, verbose=1)

## S4 method for signature 'siamcat'
weight_matrix(siamcat, verbose = 1)

Arguments

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 0 (no output) or 1 (print message)

Details

The function extracts the feature weights from all trained models acorss all cross-validation folds and repeats.

Value

A matrix containing the feature weights or NULL

Examples

data(siamcat_example)
temp <- weight_matrix(siamcat_example)
temp[1:3, 1:3]

zellerlab/siamcat documentation built on Feb. 1, 2024, 2:21 a.m.