I\'m experimenting with a clustering model in pyspark. I\'m trying to get the mean squared cost of the cluster fit for different values of K
def meanScore(k,d