Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
freeman-lab committed Oct 29, 2014
1 parent 374a706 commit 9f7aea9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,11 @@ class StreamingKMeans(
data.mapValues(model.predict)
}

/** Check whether cluster centers have been initialized.*/
/** Check whether cluster centers have been initialized. */
def assertInitialized(): Unit = {
if (Option(model.clusterCenters) == None) {
throw new IllegalStateException("Initial cluster centers must be set before starting predictions")
throw new IllegalStateException(
"Initial cluster centers must be set before starting predictions")
}
}

Expand Down

0 comments on commit 9f7aea9

Please sign in to comment.