Skip to content

Commit

Permalink
print embeddings
Browse files Browse the repository at this point in the history
  • Loading branch information
zaidalyafeai authored Apr 6, 2024
1 parent 8f2f624 commit 03bdaa7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions utils/clusters_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ def compute_clusters(embeddings: List[List[float]]) -> List[int]:
def compute_reduced_embeddings(embeddings: List[List[float]]) -> List[List[float]]:
tsne_model = TSNE(n_components=2, random_state=42)
for emb in embeddings:
if len(emb) != 384:
print(emb)
assert len(emb) == 384
print(len(emb))
embeddings = np.asarray(embeddings, dtype=object)
print(embeddings.shape)
tsne_data = tsne_model.fit_transform(embeddings)
Expand Down

0 comments on commit 03bdaa7

Please sign in to comment.