File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
mllib/src/main/scala/org/apache/spark/ml/feature Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,6 @@ private[feature] trait StringIndexerBase extends Params with HasInputCol with Ha
5252 val outputFields = inputFields :+ attr.toStructField()
5353 StructType (outputFields)
5454 }
55-
56- /** @group setParam */
57- def setHandleInvalid (value : String ): this .type = set(handleInvalid, value)
58- setDefault(handleInvalid, " error" )
5955}
6056
6157/**
@@ -73,6 +69,10 @@ class StringIndexer(override val uid: String) extends Estimator[StringIndexerMod
7369
7470 def this () = this (Identifiable .randomUID(" strIdx" ))
7571
72+ /** @group setParam */
73+ def setHandleInvalid (value : String ): this .type = set(handleInvalid, value)
74+ setDefault(handleInvalid, " error" )
75+
7676 /** @group setParam */
7777 def setInputCol (value : String ): this .type = set(inputCol, value)
7878
@@ -133,6 +133,10 @@ class StringIndexerModel (
133133 map
134134 }
135135
136+ /** @group setParam */
137+ def setHandleInvalid (value : String ): this .type = set(handleInvalid, value)
138+ setDefault(handleInvalid, " error" )
139+
136140 /** @group setParam */
137141 def setInputCol (value : String ): this .type = set(inputCol, value)
138142
Original file line number Diff line number Diff line change 2323 * features into more suitable forms for model fitting.
2424 * Most feature transformers are implemented as {@link org.apache.spark.ml.Transformer}s, which
2525 * transforms one {@link org.apache.spark.sql.DataFrame} into another, e.g.,
26- * {@link org.apache.spark.mllib .feature.HashingTF}.
26+ * {@link org.apache.spark.ml .feature.HashingTF}.
2727 * Some feature transformers are implemented as {@link org.apache.spark.ml.Estimator}}s, because the
2828 * transformation requires some aggregated information of the dataset, e.g., document
2929 * frequencies in {@link org.apache.spark.ml.feature.IDF}.
You can’t perform that action at this time.
0 commit comments