simlr_sparseness.Rd
Applies smoothing and sparsity constraints to a matrix or vector as used in SIMLR or manifold learning, followed by optional L1 feature normalization depending on the energy type.
simlr_sparseness(
v,
constraint_type = c("Stiefel", "Grassmann", "none", "ortho"),
smoothing_matrix = NULL,
positivity = "positive",
sparseness_quantile = 0.8,
constraint_weight = NA,
constraint_iterations = 1,
sparseness_alg = "soft",
energy_type = "acc"
)
A numeric matrix or vector to be transformed.
Character. Type of manifold constraint; one of `"Stiefel"`, `"Grassmann"`, or `"None"`.
Optional numeric matrix. If provided, v
is left-multiplied by this matrix.
Character positive, negative or either.
Numeric between 0 and 1. Fraction of elements to sparsify using quantile thresholding.
Numeric. Weight for the constraint, used in orthogonalization.
Numeric. Number of iterations for the orthogonalization optimization.
Character. Sparsity algorithm to use (relevant for Stiefel and Grassmann). . ensemble or nnorth are test options.
Character. If set to one of `"acc"`, `"cca"`, `"nc"`, `"normalized_correlation"`, `"lowRankRegression"`, or `"lrr"`,
then the returned matrix is normalized using l1_normalize_features
.
A numeric matrix of the same dimensions as v
, with applied smoothing, sparsity, and optional normalization.