Github user jkbradley commented on a diff in the pull request:
https://github.com/apache/spark/pull/16883#discussion_r103332764
--- Diff: docs/ml-features.md ---
@@ -502,7 +502,7 @@ for more details on the API.
## StringIndexer
`StringIndexer` encodes a string column of labels to a column of label
indices.
-The indices are in `[0, numLabels)`, ordered by label frequencies, so the
most frequent label gets index `0`.
+The indices are in `[0, numLabels]`, ordered by label frequencies, so the
most frequent label gets index `0`.
--- End diff --
This change is not correct, except when keeping invalid ones.
---
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]