skbio.embedding.EmbeddingVector#

class skbio.embedding.EmbeddingVector(vector, obj, **kwargs)[source]#

Vector representation for a biological entity.

Parameters:
vector1D or 2D array_like

The vector representation of the sequence. Typically a 1D array. Can also be a 2D array with only one row.

sequencestr, Sequence, or 1D ndarray

Characters representing the sequence itself.

See also

Embedding

Attributes

embedding

The embedding tensor.

vector

Vector representation for the biological entity.

Attributes (inherited)

ids

IDs corresponding to each row of the embedding.

Methods (inherited)

bytes

Bytes representation of string encoding.

read

Create a new EmbeddingVector instance from a file.

write

Write an instance of EmbeddingVector to a file.

Special methods

__str__

Return str(self).

Special methods (inherited)

__eq__

Return self==value.

__ge__

Return self>=value.

__getstate__

Helper for pickle.

__gt__

Return self>value.

__hash__

Return hash(self).

__le__

Return self<=value.

__lt__

Return self<value.

__ne__

Return self!=value.

Details

embedding#

The embedding tensor.

vector#

Vector representation for the biological entity.

__str__()[source]#

Return str(self).