Skip to contents

[Experimental] Leverages the ForceAtlas2 implementation in manifolds-rs. This version uses a pre-computed kNN graph, please see new_nearest_neighbour().

Usage

rs_forceatlas2_from_knn(embd, knn_data, k, fa2_params, seed, verbose)

Arguments

embd

Numerical matrix. The data to use to generate the embeddings. Should be of dimensions samples x features.

knn_data

NearestNeighbours class from R.

k

Integer. Number of nearest neighbours to consider.

fa2_params

Named list. List that contains all of the key parameters for the graph generation and ForceAtlas2 optimisation.

seed

Integer. Seed for reproducibility.

verbose

Integer. If 0L -> silent or 1L for normal verbosity; 2L for detailed verbosity.

Value

The ForceAtlas2 embedding, samples x 2.