CachedEmbeddings#
- class scikitplot.corpus.CachedEmbeddings(embeddings, status, key, revision)[source]#
The result of
EmbeddingEngine.embed_cached.- Attributes:
- embeddingsnumpy.ndarray
(n_texts, dim)in the engine’s dtype.- statusCacheStatus
What the call did.
- keystr or None
The 64-hex cache key, or
Nonewhen the cache was not consulted.- revisionstr or None
The revision the key names (pinned, resolved, or the branch or tag given with
unpinned="allow");Nonewhen empty or when the cache was not consulted.
- Parameters:
embeddings (Any)
status (CacheStatus)
key (str | None)
revision (str | None)
- count(value, /)#
Return number of occurrences of value.
- index(value, start=0, stop=sys.maxsize, /)#
Return first index of value.
Raises ValueError if the value is not present.
- status: CacheStatus[source]#
Alias for field number 1