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

Use pickle instead of MapConvert and ListConvert in MLlib Python API

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.1, 1.3.0
    • Component/s: MLlib, PySpark
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: