Skip to content

Commit 73f8b64

Browse files
committed
Merge branch 'feat/13513-enhance-tsne-script' of https://github.com/wishmaster815/Python into feat/13513-enhance-tsne-script
2 parents 0aa705a + 89a1b69 commit 73f8b64

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

machine_learning/t_stochastic_neighbour_embedding.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ def main() -> None:
101101
import matplotlib.pyplot as plt
102102

103103
plt.figure(figsize=(7, 5))
104-
scatter = plt.scatter(embedding[:, 0], embedding[:, 1], c=labels, cmap="viridis")
104+
scatter = plt.scatter(
105+
embedding[:, 0], embedding[:, 1], c=labels, cmap="viridis"
106+
)
105107
plt.title("t-SNE Visualization of the Iris Dataset")
106108
plt.xlabel("Dimension 1")
107109
plt.ylabel("Dimension 2")

0 commit comments

Comments
 (0)