Skip to content

Commit 89a1b69

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 31488d6 commit 89a1b69

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

machine_learning/t_stochastic_neighbour_embedding.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import doctest
99
import numpy as np
1010
from numpy import ndarray
11+
1112
try:
1213
from sklearn.datasets import load_iris
1314
from sklearn.manifold import TSNE
@@ -101,7 +102,9 @@ def main() -> None:
101102
import matplotlib.pyplot as plt
102103

103104
plt.figure(figsize=(7, 5))
104-
scatter = plt.scatter(embedding[:, 0], embedding[:, 1], c=labels, cmap="viridis")
105+
scatter = plt.scatter(
106+
embedding[:, 0], embedding[:, 1], c=labels, cmap="viridis"
107+
)
105108
plt.title("t-SNE Visualization of the Iris Dataset")
106109
plt.xlabel("Dimension 1")
107110
plt.ylabel("Dimension 2")
@@ -114,4 +117,4 @@ def main() -> None:
114117

115118
if __name__ == "__main__":
116119
doctest.testmod()
117-
main()
120+
main()

0 commit comments

Comments
 (0)