Github user jkbradley commented on a diff in the pull request: https://github.com/apache/spark/pull/10257#discussion_r47384289 --- Diff: docs/ml-features.md --- @@ -459,6 +459,42 @@ 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`. +Additionaly, there are two strategies regarding how `StringIndexer` will handle +unseen labels when you have set up a `StringIndexer` on a dataset which you want --- End diff -- "set up" --> "fit" "on a dataset which you want to reuse on another" --> "on one dataset and then use it to transform another dataset"
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org