-1
按照作为sklearn kmeans documentation聚类,它说,k-均值需要形状=(N_SAMPLES次,n_features)的基质中。但是我提供了shape =(n_samples,n_samples)的距离矩阵,其中每个索引都保存两个字符串之间的距离。时间序列已使用SAX表示法转换为字符串。传距离矩阵到k-指sklearn
当我跑了距离矩阵集群,它提供了良好的效果。这可能是什么原因?据我所知,K-medoids是与距离矩阵一起工作的。