Skip to contents

Setup ICA config.

Usage

setup_ICA(
  k = 3L,
  type = "parallel",
  fun = "logcosh",
  alpha = 1,
  row_norm = TRUE,
  maxit = 100L,
  tol = 1e-04,
  features = NULL
)

Arguments

k

Integer [1, Inf): Number of components.

type

Character {"parallel", "deflation"}: Type of ICA.

fun

Character {"logcosh", "exp"}: ICA function.

alpha

Numeric [1, 2]: Used in approximation to neg-entropy with fun = "logcosh".

row_norm

Logical: If TRUE, normalize rows of x before ICA.

maxit

Integer [1, Inf): Maximum number of iterations.

tol

Numeric [0, Inf): Tolerance.

features

Optional Character vector: Names of at least 2 distinct feature columns to decompose. NULL decomposes all numeric features.

Value

ICAConfig object.

Author

EDG

Examples

ica_config <- setup_ICA(k = 3L)
ica_config
#> <ICA DecompositionConfig>
#>        k: <int> 3
#>     type: <chr> parallel
#>      fun: <chr> logcosh
#>    alpha: <nmr> 1.00
#> row_norm: <lgc> TRUE
#>    maxit: <int> 100
#>      tol: <nmr> 1e-04