Data Science, Python, Machine Learning, Dimensionality Reduction.
df.index, columns = ['pc_1', 'pc_2'])) fig, ax = plt.subplots(figsize = (8,5)) ax.grid(False) ax.set_frame_on(False) sns.scatterplot(data=df_, x='pc_1', y='pc_2', hue='species', ax =ax) plt.show() Image by Author We create a t-SNE model with two components, by utilizing the scikit-learn TSNE()