def plot_clustering(clustering, data, title):
plot_df = pd.DataFrame(data, columns=['0', '1'])
plot_df['cluster'] = clustering
g = sb.lmplot(x='0', y='1', data=plot_df, hue='cluster', fit_reg=False)
g.ax.set_title(title)
pp.draw()
评论列表
文章目录