You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Joseph K. Bradley (JIRA)" <ji...@apache.org> on 2015/02/05 04:11:34 UTC
[jira] [Created] (SPARK-5609) PythonMLlibAPI trainGaussianMixture
seed should use Java type
Joseph K. Bradley created SPARK-5609:
----------------------------------------
Summary: 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