Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

computecost pyspark

print('Silhouette with squared euclidean distance:')
pdt = model.transform(final_data)
from pyspark.ml.evaluation import ClusteringEvaluator
evaluator = ClusteringEvaluator()
silhouette = evaluator.evaluate(pdt)
print(silhouette)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #computecost #pyspark
ADD COMMENT
Topic
Name
9+6 =