projection

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compute

func Compute(embs []v1.Embedding, p v1.Projection) (map[v1.Dim][]v1.Embedding, error)

Compute computes p projections (2D and 3D) for embeddings embs and returns them.

func PCA

func PCA(embs []v1.Embedding, projDim v1.Dim) ([]v1.Embedding, error)

PCA computes PCA vectors and projects the original embeddings to the given dimension. It returns a new slice of embeddings of the same size as the origin al embeddings, but with the given dimension dropped to the given dimension.

func TSNE

func TSNE(embs []v1.Embedding, projDim v1.Dim) ([]v1.Embedding, error)

TSNE calculates tsne projecion of the given embeddings into the given dimension. It returns a new slice of embeddings of the same size as the origin al embeddings, but with the given dimension dropped to the given dimension.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL