[
https://issues.apache.org/jira/browse/SPARK-5609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14306561#comment-14306561
]
Joseph K. Bradley commented on SPARK-5609:
------------------------------------------
Ping [~MeethuMathew] [~mengxr]
> PythonMLlibAPI trainGaussianMixture seed should use Java type
> -------------------------------------------------------------
>
> Key: SPARK-5609
> URL: https://issues.apache.org/jira/browse/SPARK-5609
> Project: Spark
> Issue Type: Bug
> Components: MLlib, PySpark
> Affects Versions: 1.3.0
> Reporter: Joseph K. Bradley
> Priority: Trivial
>
> trainGaussianMixture takes parameter seed of type scala.Long but should take
> java.lang.Long.
> Otherwise, the test for whether seed is null (None in Python) will be
> ineffective. See compilation warning:
> {code}
> [warn]
> /Users/josephkb/spark/mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala:304:
> comparing values of types Long and Null using `!=' will always yield true
> [warn] if (seed != null) gmmAlg.setSeed(seed)
> [warn] ^
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]