text_plain_output_1.png
from matplotlib import pyplot as plt
import seaborn as sns
sns.set(rc={'figure.figsize': (13, 9)})
palette = sns.hls_palette(k, l=0.4, s=0.9)
sns.scatterplot(X_embedded[:, 0], X_embedded[:, 1], hue=y_pred, legend='full', palette=palette)
plt.title('t-SNE with Kmeans Labels')
plt.savefig('improved_cluster_tsne.png')
plt.show()