anchor_python_visualization.embeddings.features

Loading and labelling embeddings.

Module Contents

Functions

load_features(...)

Loads the embeddings from a CSV file and determines identifiers and labels.

Attributes

COLUMN_NAME_IDENTIFIER

Name for index column.

PLACEHOLDER_FOR_SUBSTITUTION

Optional placeholder used in image_dir argument.

anchor_python_visualization.embeddings.features.COLUMN_NAME_IDENTIFIER: str = 'identifier'[source]

Name for index column.

anchor_python_visualization.embeddings.features.PLACEHOLDER_FOR_SUBSTITUTION: str = '<IMAGE>'[source]

Optional placeholder used in image_dir argument.

anchor_python_visualization.embeddings.features.load_features(args: argparse.Namespace) anchor_python_visualization.embeddings.label.LabelledFeatures[source]

Loads the embeddings from a CSV file and determines identifiers and labels.

This determination occurs according to command-line arguments.

Parameters:

args – the command-line arguments.

Returns:

newly-created instance of features after having being loaded.