Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-5609

PythonMLlibAPI trainGaussianMixture seed should use Java type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.3.0
    • 1.3.0
    • MLlib, PySpark
    • None

    Description

      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:

      [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]              ^
      

      Attachments

        Activity

          People

            mengxr Xiangrui Meng
            josephkb Joseph K. Bradley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: