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

Use pickle instead of MapConvert and ListConvert in MLlib Python API

    XMLWordPrintableJSON

Details

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

    Description

      It will introduce problems if the object in dict/list/tuple can not support by py4j, such as Vector.

      Also, pickle may have better performance for larger object (less RPC).

      In some cases that the object in dict/list can not be pickled (such as JavaObject), we should still use MapConvert/ListConvert.

      discussion: http://apache-spark-developers-list.1001551.n3.nabble.com/Python-to-Java-object-conversion-of-numpy-array-td10065.html

      Attachments

        Activity

          People

            davies Davies Liu
            davies Davies Liu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: