Skip to contents

Extract embedding coordinates

Usage

embedding_coordinates(x)

Arguments

x

A cuda_embedding.

Value

Numeric coordinate matrix.

Examples

fit <- cuda_diffusion_map(
  matrix(rnorm(60), 20, 3),
  n_components = 2,
  device = "cpu"
)
embedding_coordinates(fit)
#>          DIFFUSION1    DIFFUSION2
#>  [1,] -2.651080e-05  0.0059420408
#>  [2,]  5.397994e-03  0.0152994605
#>  [3,] -1.572159e-02 -0.0039212040
#>  [4,] -2.211185e-03  0.0090891375
#>  [5,] -8.202088e-03 -0.0003872585
#>  [6,]  1.817562e-03 -0.0071427058
#>  [7,] -1.522752e-02 -0.0043898527
#>  [8,] -5.372608e-03  0.0012964813
#>  [9,] -2.528037e-05  0.0027549750
#> [10,] -1.539967e-02 -0.0004506944
#> [11,]  2.208157e-02  0.0004508154
#> [12,] -1.052977e-02  0.0016624836
#> [13,] -1.473547e-02 -0.0082570525
#> [14,]  4.490004e-03 -0.0040820737
#> [15,]  2.875572e-02 -0.0028191364
#> [16,]  2.803799e-02 -0.0076134331
#> [17,]  3.023048e-03  0.0094129803
#> [18,]  1.563673e-02 -0.0048288064
#> [19,]  3.219093e-03  0.0018391162
#> [20,] -1.385324e-03 -0.0035620016