MCPcopy
hub / github.com/MaartenGr/BERTopic / reduced_embeddings

Function reduced_embeddings

tests/conftest.py:29–33  ·  view source on GitHub ↗
(document_embeddings)

Source from the content-addressed store, hash-verified

27
28@pytest.fixture(scope="session")
29def reduced_embeddings(document_embeddings):
30 reduced_embeddings = UMAP(n_neighbors=10, n_components=2, min_dist=0.0, metric="cosine").fit_transform(
31 document_embeddings
32 )
33 return reduced_embeddings
34
35
36@pytest.fixture(scope="session")

Callers

nothing calls this directly

Calls 1

fit_transformMethod · 0.80

Tested by

no test coverage detected