Project observations into a fitted landmark embedding
Source:R/landmark_model.R
project_landmark_model.Rdproject_landmark_model() computes query-to-reference KNN with the same
native backend policy used by the full embedding functions, then applies the
method-specific fixed-reference transform. Landmark coordinates remain
fixed.
Usage
project_landmark_model(
model,
data,
query_indices = NULL,
transform_k = NULL,
refinement_epochs = 50L,
transform_perplexity = 5,
transform_iter = 250L,
transform_early_exaggeration_iter = 0L,
transform_n_negatives = NULL,
initialization = c("median", "weighted", "random"),
keep_knn = FALSE,
n.cores = NULL,
verbose = FALSE,
...
)Arguments
- model
The
modelelement returned byumap()ortsne()when landmarking is enabled.- data
New query observations in the original feature space used for fitting. The stored standardization and PCA transforms are applied before query-to-reference search.
- query_indices
Optional rows of
datato project. To reconstruct the original training layout explicitly, pass the original matrix andmodel$selection$query_indices. WithNULL, every supplied row is treated as a genuinely new query, even when its row count matches the training set.- transform_k
Number of reference neighbors.
- refinement_epochs
Fixed-reference UMAP refinement epochs.
- transform_perplexity
Perplexity of the t-SNE transform.
- transform_iter
Number of t-SNE transform iterations.
- transform_early_exaggeration_iter
Transform exaggeration iterations.
- transform_n_negatives
Number of reference negatives for t-SNE.
- initialization
t-SNE query initialization.
- keep_knn
Retain query-to-reference KNN output.
- n.cores
Number of CPU cores.
- verbose
Print optimizer progress.
- ...
Low-level t-SNE transform controls.