1. 聚类 聚类:对数据集进行分类,比如y=0,y=1,y=2等 1.1 kmeans聚类(k=4) 聚类:分为四类,所以K=4 from sklearn.cluster import KMeans import numpy as np import matplotlib.pyplot as plt import warnings warnings.filterwarnings(