2021-02-13
谱聚类算法实例1.通过自己编写的import numpy as npfrom sklearn.cluster import KMeansimport mathimport matplotlib.pyplot as pltfrom sklearn import datasetsdef distance(x1, x2): """ 获得两个样本点之间的距离 :param x1: 样本点1 :param x2: 样本点2 :return: ".
原创
2021-02-13 13:04:53 ·
468 阅读 ·
1 评论