Skip to content

Commit

Permalink
change the bug for logging clustersizes
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-wang-dl committed May 3, 2018
1 parent 07c20a4 commit 9053281
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ class BisectingKMeans @Since("2.0.0") (
val summary = new BisectingKMeansSummary(
model.transform(dataset), $(predictionCol), $(featuresCol), $(k))
model.setSummary(Some(summary))
instr.logNamedValue("clusterSizes", summary.clusterSizes.toString)
instr.logNamedValue("clusterSizes", summary.clusterSizes.mkString(", "))
instr.logSuccess(model)
model
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ class GaussianMixture @Since("2.0.0") (
$(predictionCol), $(probabilityCol), $(featuresCol), $(k), logLikelihood)
model.setSummary(Some(summary))
instr.logNamedValue("logLikelihood", logLikelihood)
instr.logNamedValue("clusterSizes", summary.clusterSizes.toString)
instr.logNamedValue("clusterSizes", summary.clusterSizes.mkString(", "))
instr.logSuccess(model)
model
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ class KMeans @Since("1.5.0") (
model.transform(dataset), $(predictionCol), $(featuresCol), $(k))

model.setSummary(Some(summary))
instr.logNamedValue("clusterSizes", summary.clusterSizes.toString)
instr.logNamedValue("clusterSizes", summary.clusterSizes.mkString(", "))
instr.logSuccess(model)
if (handlePersistence) {
instances.unpersist()
Expand Down

0 comments on commit 9053281

Please sign in to comment.