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 70ce734 commit 0321fafCopy full SHA for 0321faf
examples/src/main/scala/org/apache/spark/examples/ml/VectorIndexerExample.scala
@@ -42,7 +42,7 @@ object VectorIndexerExample {
42
43
val categoricalFeatures: Set[Int] = indexerModel.categoryMaps.keys.toSet
44
println(s"Chose ${categoricalFeatures.size} " +
45
- s"categorical features: {$categoricalFeatures.mkString(", ")}")
+ s"categorical features: ${categoricalFeatures.mkString(", ")}")
46
47
// Create new column "indexed" with categorical values transformed to indices
48
val indexedData = indexerModel.transform(data)
0 commit comments