Github user jkbradley commented on a diff in the pull request:
https://github.com/apache/spark/pull/16883#discussion_r104296546
--- Diff:
mllib/src/main/scala/org/apache/spark/ml/feature/StringIndexer.scala ---
@@ -71,18 +92,17 @@ class StringIndexer @Since("1.4.0") (
def this() = this(Identifiable.randomUID("strIdx"))
/** @group setParam */
- @Since("1.6.0")
- def setHandleInvalid(value: String): this.type = set(handleInvalid,
value)
- setDefault(handleInvalid, "error")
-
- /** @group setParam */
@Since("1.4.0")
def setInputCol(value: String): this.type = set(inputCol, value)
/** @group setParam */
@Since("1.4.0")
def setOutputCol(value: String): this.type = set(outputCol, value)
+ /** @group setParam */
+ @Since("2.2.0")
+ def setHandleInvalid(value: String): this.type = set(handleInvalid,
value)
--- End diff --
+1 for maintaining order.
setDefault will go in the trait (except in cases where it belongs in just
one of the Estimator or Model)
---
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]