Plotting the boundaries of cluster zone in Python with scikit package

前端 未结 1 429
青春惊慌失措
青春惊慌失措 2021-02-09 00:50

Here is my simple example of dealing with data clustering in 3 attribute(x,y,value). each sample represent its location(x,y) and its belonging variable.

My code was pos

1条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-09 01:14

    The cluster zones are actually just a Voronoi diagram of the cluster centers. Scipy has some tools for computing Voronoi cells given a set of points. This page has some examples on how you can do this.

    0 讨论(0)
提交回复
热议问题