get_reconstruct_errors_svd: Calculate reconstruction errors using svd approach

View source: R/determine_ranks_tucker.R

get_reconstruct_errors_svdR Documentation

Calculate reconstruction errors using svd approach

Description

Calculate reconstruction errors using svd approach

Usage

get_reconstruct_errors_svd(tnsr, max_ranks_test, shuffle_tensor)

Arguments

tnsr

array A 3-dimensional array with dimensions of donors, genes, and cell types in that order

max_ranks_test

numeric Vector of length 3 with maximum number of ranks to test for donor, gene, and cell type modes in that order

shuffle_tensor

logical Set to TRUE to shuffle values within the tensor

Value

A list of reconstruction errors for each mode of the tensor.


scITD documentation built on Sept. 8, 2023, 5:11 p.m.