anchor_python_visualization.projection.factory

Creates instances of Projector.

Module Contents

Functions

create_projector(...)

Creates a projection method from an identifier.

Attributes

IDENTIFIERS

Unique strings to use as command-line-arguments to select a Projector.

DEFAULT_IDENTIFIER

The default choice to use in IDENTIFIERS.

anchor_python_visualization.projection.factory.IDENTIFIERS = ['t-sne', 'pca', 'none'][source]

Unique strings to use as command-line-arguments to select a Projector.

All are lower-case.

anchor_python_visualization.projection.factory.DEFAULT_IDENTIFIER = 't-sne'[source]

The default choice to use in IDENTIFIERS.

anchor_python_visualization.projection.factory.create_projector(identifier: str) anchor_python_visualization.projection.projector.Projector | None[source]

Creates a projection method from an identifier.

Parameters:

identifier – string that is one of IDENTIFIERS, case-insensitive.

Returns:

a newly created projection method, or none at all.