Unable to reproduce Kmeans Clustering results even after setting seed and tolerance

mala
New Contributor III

Hi

I have been trying to reproduce Kmeans results with no luck

Here is my code snippet:

from pyspark.ml.clustering import KMeans

KMeans(featuresCol=featuresCol, k=clusters, maxIter=40, seed=1, tol = .00001) 

Can anyone help?