Github user mengxr commented on a diff in the pull request:
https://github.com/apache/spark/pull/5090#discussion_r26814111
--- Diff:
mllib/src/main/scala/org/apache/spark/mllib/classification/NaiveBayes.scala ---
@@ -41,6 +44,10 @@ class NaiveBayesModel private[mllib] (
val pi: Array[Double],
val theta: Array[Array[Double]]) extends ClassificationModel with
Serializable with Saveable {
+ /** A Java-friendly constructor that takes three Iterable parameters. */
+ def this(labels: JIterable[Double], pi: JIterable[Double], theta:
JIterable[JIterable[Double]]) =
--- End diff --
Maybe we should mark this as package private because the only use case
would be calling from python.
---
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]