spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph K. Bradley (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-5609) PythonMLlibAPI trainGaussianMixture seed should use Java type
Date Thu, 05 Feb 2015 03:13:35 GMT

    [ 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message