Skip to content

Commit 01683de

Browse files
committed
Fixed new code.
1 parent a4ab46e commit 01683de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mllib/src/test/scala/org/apache/spark/ml/feature/VectorIndexerSuite.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ class VectorIndexerSuite extends FunSuite with MLlibTestSparkContext {
150150
val vectorIndexer = getIndexer.setMaxCategories(maxCategories)
151151
val model = vectorIndexer.fit(data)
152152
val categoryMaps = model.categoryMaps
153-
assert(categoryMaps.keys.toSet === categoricalFeatures) // Chose correct categorical features
153+
// Chose correct categorical features
154+
assert(categoryMaps.keys.toSet === categoricalFeatures)
154155
val transformed = model.transform(data).select("indexed")
155156
val indexedRDD: RDD[Vector] = transformed.map(_.getAs[Vector](0))
156157
val featureAttrs = AttributeGroup.fromStructField(transformed.schema("indexed"))

0 commit comments

Comments
 (0)