Repository: spark
Updated Branches:
  refs/heads/master cc1d2dcb6 -> 37bed97de


[PYSPARK] add picklable SparseMatrix in pyspark.ml.common

## What changes were proposed in this pull request?

add `SparseMatrix` class whick support pickler.

## How was this patch tested?

Existing test.

Author: WeichenXu <weichenxu...@outlook.com>

Closes #14265 from WeichenXu123/picklable_py.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/37bed97d
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/37bed97d
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/37bed97d

Branch: refs/heads/master
Commit: 37bed97de5f81a9127f1ff12db695aab6e5c4c47
Parents: cc1d2dc
Author: WeichenXu <weichenxu...@outlook.com>
Authored: Sun Jul 24 02:29:08 2016 -0700
Committer: Yanbo Liang <yblia...@gmail.com>
Committed: Sun Jul 24 02:29:08 2016 -0700

----------------------------------------------------------------------
 python/pyspark/ml/common.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/37bed97d/python/pyspark/ml/common.py
----------------------------------------------------------------------
diff --git a/python/pyspark/ml/common.py b/python/pyspark/ml/common.py
index 7d449aa..aec860f 100644
--- a/python/pyspark/ml/common.py
+++ b/python/pyspark/ml/common.py
@@ -51,6 +51,7 @@ py4j.protocol.smart_decode = _new_smart_decode
 _picklable_classes = [
     'SparseVector',
     'DenseVector',
+    'SparseMatrix',
     'DenseMatrix',
 ]
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to