Skip to content

Commit 90ccff3

Browse files
committed
Merge branch 'feat/13513-enhance-tsne-script' of https://github.com/wishmaster815/Python into feat/13513-enhance-tsne-script
2 parents 8b4057d + 37d5123 commit 90ccff3

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
@@ -100,7 +100,9 @@ def main() -> None:
100100
import matplotlib.pyplot as plt
101101

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

0 commit comments

Comments
 (0)