Latent dimension selected by the method (if applicable)
Source:R/adapters_grasp.R, R/adapters_ot_procrustes.R, R/align_framework.R
latent_dim.RdLatent dimension selected by the method (if applicable)
Usage
# S3 method for class 'grasp_pair_fit'
latent_dim(fit, ...)
# S3 method for class 'ot_procrustes_pair_fit'
latent_dim(fit, ...)
latent_dim(fit, ...)Examples
# \donttest{
set.seed(1)
X1 <- matrix(rnorm(50), 25, 2)
X2 <- matrix(rnorm(50), 25, 2)
algo <- grasp_aligner()
fit <- fit_pair(algo, X1, X2)
#> Error in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'colSums': non-conformable matrix dimensions in .Arith.Csparse(e1, e2, .Generic, class. = "dgCMatrix")
dim <- latent_dim(fit)
# }