Github user jkbradley commented on a diff in the pull request:
https://github.com/apache/spark/pull/8152#discussion_r36932669
--- Diff:
mllib/src/main/scala/org/apache/spark/ml/feature/StringIndexer.scala ---
@@ -172,14 +172,11 @@ class StringIndexerModel private[ml] (
}
/**
- * Return a model to perform the inverse transformation.
- * Note: By default we keep the original columns during this
transformation, so the inverse
- * should only be used on new columns such as predicted labels.
+ * Return a [[IndexToString]] instance to perform the inverse
transformation, mapping indices back
+ * to their string values.
--- End diff --
I think it's useful to provide some comment to the effect that this inverse
should be used to convert predicted indices back to labels (though I agree the
wording can be improved).
---
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]