skbio.embedding.embed_vec_to_ordination#

skbio.embedding.embed_vec_to_ordination(vectors, validate=True)[source]#

Convert EmbeddingVector objects to an Ordination object.

A singular value decomposition (SVD) is performed on the data.

Parameters:
vectorsiterable of EmbeddingVector objects

An iterable of EmbeddingVector objects, or objects that subclass EmbeddingVector.

validatebool, optional

If True, validate that all vectors have the same length and are valid types.

Returns:
OrdinationResults

Ordination results with objects as samples and latent variables as features.