Github user imatiach-msft commented on a diff in the pull request:
https://github.com/apache/spark/pull/16883#discussion_r104092772
--- Diff: docs/ml-features.md ---
@@ -576,7 +579,22 @@ will be generated:
2 | c | 1.0
~~~~
-Notice that the row containing "d" does not appear.
+Notice that the rows containing "d" or "e" do not appear.
+
+If you call `setHandleInvalid("keep")`, the following dataset
+will be generated:
+
+~~~~
+ id | category | categoryIndex
+----|----------|---------------
+ 0 | a | 0.0
+ 1 | b | 2.0
+ 2 | c | 1.0
+ 3 | d | 3.0
+ 4 | e | 3.0
+~~~~
+
+Notice that the rows containing "d" or "e" are mapped with indices "3.0"
--- End diff --
doc suggestion: rows containing "d" or "e" are mapped with indices "3.0"
=> rows containing "d" and "e" are mapped to index "3.0"
---
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]