Commit
·
ef08db2
1
Parent(s):
cf4f4b2
Updating T-SNE Plot
Browse files
Data_Plotting/Plot_TSNE.py
CHANGED
@@ -28,7 +28,7 @@ def plot_dimensionality_reduction(x, y, label_set, title):
|
|
28 |
if label_set[0].dtype == float:
|
29 |
plt.scatter(x, y, c=label_set)
|
30 |
cbar = plt.colorbar()
|
31 |
-
cbar.set_label('Average Density', fontsize=
|
32 |
print("using scatter")
|
33 |
else:
|
34 |
for label in set(label_set):
|
@@ -37,7 +37,7 @@ def plot_dimensionality_reduction(x, y, label_set, title):
|
|
37 |
|
38 |
plt.legend(numpoints=1)
|
39 |
plt.xlabel("Dimension 1")
|
40 |
-
plt.ylabel("Dimension 2"
|
41 |
########################################################################################################################
|
42 |
"""
|
43 |
# Use for personal plotting
|
|
|
28 |
if label_set[0].dtype == float:
|
29 |
plt.scatter(x, y, c=label_set)
|
30 |
cbar = plt.colorbar()
|
31 |
+
cbar.set_label('Average Density', fontsize=12)
|
32 |
print("using scatter")
|
33 |
else:
|
34 |
for label in set(label_set):
|
|
|
37 |
|
38 |
plt.legend(numpoints=1)
|
39 |
plt.xlabel("Dimension 1")
|
40 |
+
plt.ylabel("Dimension 2")
|
41 |
########################################################################################################################
|
42 |
"""
|
43 |
# Use for personal plotting
|