11
This commit is contained in:
1 parent
edf5b6c5a1
commit
0378063c8c
1 file changed
+1
-1
@@ -220,7 +220,7 @@ def main(args):
|
||||
|
||||
# --- 5. 使用t-SNE进行降维 (不变) ---
|
||||
print("Performing dimensionality reduction using t-SNE...")
|
||||
tsne = TSNE(n_components=2, verbose=1, perplexity=40, n_iter=1000, random_state=42)
|
||||
tsne = TSNE(n_components=2, verbose=1, perplexity=40, max_iter=1000, random_state=42)
|
||||
reduced_embeddings = tsne.fit_transform(all_embeddings)
|
||||
print("t-SNE finished.")
|
||||
|
||||
|
||||
Reference in new issue
Block a user