skbio.embedding.Embedding#
- class skbio.embedding.Embedding(embedding, ids, **kwargs)[source]#
Embedding for a biological object.
- Parameters:
- embeddingarray_like
Embedding matrix where the first axis is indexed by ids.
- idsarray_like
IDs of biological objects.
Attributes
Methods
Bytes representation of string encoding.
Create a new
Embeddinginstance from a file.Write an instance of
Embeddingto a file.Special methods
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.
- ids#
IDs corresponding to each row of the embedding.