Train a reference SOM and build a somalign reference
Source:R/reference.R
somalign_train_reference.RdTrain a reference SOM and build a somalign reference
Usage
somalign_train_reference(
data,
labels = NULL,
features = NULL,
grid = NULL,
rlen = 100,
alpha = c(0.05, 0.01),
compute_node_var = TRUE,
...
)Arguments
- data
Numeric matrix or data frame containing old/reference samples.
- labels
Optional labels, one per row of
data.- features
Optional feature names to use. Defaults to all columns.
- grid
Optional
kohonen::somgrid()object.- rlen
Number of SOM training iterations passed to
kohonen::som().- alpha
Learning-rate schedule passed to
kohonen::som().- compute_node_var
Logical; if
TRUE(default) per-node per-marker variances are computed from the reference cells assigned to each node and stored asreference$node_var. SetFALSEto skip (reduces memory by onen_nodes x pmatrix; disables surprisal-based outside-reference detection insomalign_results()).- ...
Additional arguments passed to
kohonen::som().