📜  computecost pyspark - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:01.876000             🧑  作者: Mango

代码示例1
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)