Sklearn : Mean Distance from Centroid of each cluster

前端 未结 4 1305
难免孤独
难免孤独 2021-01-04 22:52

How can i find the mean distance from the centroid to all the data points in each cluster. I am able to find the euclidean distance of each point (in my dataset) from the ce

4条回答
  •  不知归路
    2021-01-04 23:50

    Compute all the distance into a numpy array.

    Then use nparray.mean() to get the mean.

提交回复
热议问题