Github user dbtsai commented on a diff in the pull request:
https://github.com/apache/spark/pull/11119#discussion_r55966718
--- Diff:
mllib/src/test/scala/org/apache/spark/ml/clustering/KMeansSuite.scala ---
@@ -30,11 +33,13 @@ class KMeansSuite extends SparkFunSuite with
MLlibTestSparkContext with DefaultR
final val k = 5
@transient var dataset: DataFrame = _
+ @transient var initialModel: KMeansModel = _
--- End diff --
Just make it
```scala
final val initialModel = KMeansSuite.generateKMeansModel(3, k, seed = 14)
```
Since this doesn't depend on Spark.
---
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]