Changes of clustering results after each time run in Python scikit-learn

前端 未结 4 1814
借酒劲吻你
借酒劲吻你 2020-12-17 15:53

I have a bunch of sentences and I want to cluster them using scikit-learn spectral clustering. I\'ve run the code and get the results with no problem. But, every time I run

4条回答
  •  情深已故
    2020-12-17 16:36

    Typically when running algorithms with many local minima it's common to take a stochastic approach and run the algorithm many times with different initial states. This will give you multiple results, and the one with the lowest error is usually chosen to be the best result.

    When I use K-Means I always run it several times and use the best result.

提交回复
热议问题