Re: [scikit-learn] Question about Kmeans implementation in sklearn

2019-08-05 Thread Chris Aridas
Hey Serafim, In this line https://github.com/scikit-learn/scikit-learn/blob/1495f69242646d239d89a5713982946b8ffcf9d9/sklearn/cluster/k_means_.py#L303 you can see that a randomstate object is constructed and that object is passed in the for loop that you are referring to, not the integer value that

[scikit-learn] Question about Kmeans implementation in sklearn

2019-08-05 Thread serafim loukas
Dear Sklearn community, I have a simple question concerning the implementation of KMeans clustering algorithm. Two of the input arguments are the “n_init” and “random_state”. Consider a case where “n_init=10” and “random_state=0”. By looking at the source code (https://github.com/scikit-lear