View source: R/geodesic_iknn_graphs.R
| create.iterated.iknn.graphs | R Documentation |
Constructs G0 with create.iknn.graphs(), then constructs G1, G2, ...,
Gm by repeatedly applying create.geodesic.iknn.graph() to each graph in
the kmin:kmax sequence. This implements the iterated nerve rule
\{i,j\} \in E(G_{t+1}) \iff
kNN_{G_t}(i) \cap kNN_{G_t}(j) \ne \emptyset,
with edge length
\ell_{t+1}(i,j) = d_{G_t}(i,j).
create.iterated.iknn.graphs(
X,
kmin,
kmax,
n.iterations = 3L,
max.path.edge.ratio.deviation.thld = 0,
path.edge.ratio.percentile = 0.5,
threshold.percentile = 0,
pca.dim = 100,
variance.explained = 0.99,
n.cores = 1L,
parallel.mode = c("auto", "k", "bucket", "hybrid", "bucket.prune"),
hybrid.batch.size = 2L,
verbose = TRUE,
knn.cache.path = NULL,
knn.cache.mode = c("none", "read", "write", "readwrite")
)
X |
Numeric matrix with rows as observations and columns as features. |
kmin |
Integer minimum |
kmax |
Integer maximum |
n.iterations |
Non-negative integer number of geodesic rebuilds after
|
max.path.edge.ratio.deviation.thld, path.edge.ratio.percentile, threshold.percentile |
Initial |
pca.dim, variance.explained, n.cores, parallel.mode, hybrid.batch.size, verbose, knn.cache.path, knn.cache.mode |
Additional arguments forwarded to |
A list of class "iterated_iknn_graphs" with entries:
Integer vector of requested k values.
Number of geodesic rebuilds after G0.
The "iknn_graphs" object returned by
create.iknn.graphs() for G0.
Nested list named G0, G1, ...; each entry is a named list
of graph objects for kmin:kmax.
Data frame with one row per iteration and k.
set.seed(1)
X <- matrix(rnorm(30), ncol = 2)
out <- create.iterated.iknn.graphs(X, kmin = 2, kmax = 3, n.iterations = 1,
verbose = FALSE)
out$summary
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.