Skip to content

Commit

Permalink
style correction
Browse files Browse the repository at this point in the history
  • Loading branch information
FlytxtRnD committed Jul 14, 2015
1 parent c446c58 commit ef95ee2
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,13 @@ class KMeans private (
val initStartTime = System.nanoTime()

// Only one run is allowed when initialModel is given
val numRuns = if (initialModel.nonEmpty){
if (runs >1 ) logWarning("Ignoring runs; one run is allowed when initialModel is given.")
val numRuns = if (initialModel.nonEmpty) {
if (runs > 1) logWarning("Ignoring runs; one run is allowed when initialModel is given.")
1
} else runs


} else {
runs
}

val centers = initialModel match {
case Some(kMeansCenters) => {
Array(kMeansCenters.clusterCenters.map(s => new VectorWithNorm(s)))
Expand Down

0 comments on commit ef95ee2

Please sign in to comment.