Github user yinxusen commented on the pull request:
https://github.com/apache/spark/pull/11486#issuecomment-193390578
@yanboliang @jkbradley
For this PR, I extract labels manually from labelCol. But I still don't
think it's good to make assumption first for labels to be 0-based and
continuous like `0.0, 1.0, 2.0, ...`. Sure we can use a `StringIndexer` to
re-index the labels if it does not match the assumption. But checking it is not
efficient. I suggest keeping labels in `ml.NaiveBayes`.
---
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]