Skip to contents

Setup NMF config.

Usage

setup_NMF(k = 2L, method = "brunet", nrun = if (length(k) > 1L) 30L else 1L)

Arguments

k

Integer: Number of components.

method

Character: NMF method. See NMF::nmf.

nrun

Integer: Number of runs to perform.

Value

NMFConfig object.

Author

EDG

Examples

nmf_config <- setup_NMF(k = 3L)
nmf_config
#> <NMF DecompositionConfig>
#>      k: <int> 3
#> method: <chr> brunet
#>   nrun: <int> 1