Skip to content

Commit

Permalink
debug embeddings
Browse files Browse the repository at this point in the history
  • Loading branch information
zaidalyafeai authored Apr 6, 2024
1 parent fbc8125 commit 8f2f624
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/clusters_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ 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
embeddings = np.asarray(embeddings, dtype=object)
print(embeddings.shape)
Expand Down

0 comments on commit 8f2f624

Please sign in to comment.