Github user sethah commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11119#discussion_r77014377
  
    --- Diff: 
mllib/src/test/scala/org/apache/spark/ml/clustering/KMeansSuite.scala ---
    @@ -139,16 +145,32 @@ class KMeansSuite extends SparkFunSuite with 
MLlibTestSparkContext with DefaultR
         val kmeans = new KMeans()
         testEstimatorAndModelReadWrite(kmeans, dataset, 
KMeansSuite.allParamSettings, checkModelData)
       }
    +
    +  test("Initialize using given cluster centers") {
    --- End diff --
    
    IMO, the best test here is to train a model on some sample dataset. Then 
train a model using that initial model on the same dataset, and verify that it 
converges in a single iteration. I don't think we have a way to access the 
number of iterations, so that isn't possible at the moment (unless I'm missing 
it?). Can we add a TODO that when (if?) we add total iterations to the KMeans 
model summary we can change this test?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to