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 None when the cache was not consulted.

revisionstr or None

The revision the key names (pinned, resolved, or the branch or tag given with unpinned="allow"); None when empty or when the cache was not consulted.

Parameters:
count(value, /)#

Return number of occurrences of value.

embeddings: Any[source]#

Alias for field number 0

index(value, start=0, stop=sys.maxsize, /)#

Return first index of value.

Raises ValueError if the value is not present.

key: str | None[source]#

Alias for field number 2

revision: str | None[source]#

Alias for field number 3

status: CacheStatus[source]#

Alias for field number 1