We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 900f14f commit ea06225Copy full SHA for ea06225
mllib/src/main/scala/org/apache/spark/ml/clustering/KMeans.scala
@@ -304,7 +304,7 @@ class KMeans @Since("1.5.0") (
304
override def fit(dataset: Dataset[_]): KMeansModel = {
305
transformSchema(dataset.schema, logging = true)
306
307
- val handlePersistence = dataset.rdd.getStorageLevel == StorageLevel.NONE
+ val handlePersistence = dataset.storageLevel == StorageLevel.NONE
308
val instances: RDD[OldVector] = dataset.select(col($(featuresCol))).rdd.map {
309
case Row(point: Vector) => OldVectors.fromML(point)
310
}
0 commit comments