Bootstrap

机器学习-----聚类kmeans肘部图、轮廓图的绘制、以及聚类和聚类中心散点图的绘制

1.kmeans肘部图和轮廓图

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.cluster import KMeans
from sklearn.metrics import silhouette_score
# 3.读取drink.txt文件,完成一下处理
data=pd.read_csv('drink.txt')
;