Github user jkbradley commented on a diff in the pull request:
https://github.com/apache/spark/pull/16883#discussion_r104296526
--- Diff: docs/ml-features.md ---
@@ -542,12 +543,13 @@ column, we should get the following:
"a" gets index `0` because it is the most frequent, followed by "c" with
index `1` and "b" with
index `2`.
-Additionally, there are two strategies regarding how `StringIndexer` will
handle
+Additionally, there are three strategies regarding how `StringIndexer`
will handle
unseen labels when you have fit a `StringIndexer` on one dataset and then
use it
to transform another:
- throw an exception (which is the default)
- skip the row containing the unseen label entirely
+- map the unseen labels with indices [numLabels]
--- End diff --
Or just match the phrasing in the doc param
---
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]