Github user yinxusen commented on the pull request:
https://github.com/apache/spark/pull/11486#issuecomment-198870531
@mengxr @yanboliang Since the `ml.NaiveBayes` making the assumption that
its input data's label is 0-based indices, we should add a `StringIndexer` for
labels after `RFormula` if the input data's label column is not a string column
because the `RFormula` doesn't handle numerical labels. Now we can extract
labels from the final `IndexToString`.
---
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]