-
- Downloads
[SPARK-14653][ML] Remove json4s from mllib-local
## What changes were proposed in this pull request? This PR moves Vector.toJson/fromJson to ml.linalg.VectorEncoder under mllib/ to keep mllib-local's dependency minimal. The json encoding is used by Params. So we still need this feature in SPARK-14615, where we will switch to ml.linalg in spark.ml APIs. ## How was this patch tested? Copied existing unit tests over. cc; dbtsai Author: Xiangrui Meng <meng@databricks.com> Closes #12802 from mengxr/SPARK-14653.
Showing
- mllib-local/pom.xml 0 additions, 4 deletionsmllib-local/pom.xml
- mllib-local/src/main/scala/org/apache/spark/ml/linalg/Vectors.scala 0 additions, 41 deletions...l/src/main/scala/org/apache/spark/ml/linalg/Vectors.scala
- mllib-local/src/test/scala/org/apache/spark/ml/linalg/VectorsSuite.scala 0 additions, 17 deletions.../test/scala/org/apache/spark/ml/linalg/VectorsSuite.scala
- mllib/src/main/scala/org/apache/spark/ml/linalg/JsonVectorConverter.scala 62 additions, 0 deletions...cala/org/apache/spark/ml/linalg/JsonVectorConverter.scala
- mllib/src/test/scala/org/apache/spark/ml/linalg/JsonVectorConverterSuite.scala 41 additions, 0 deletions...org/apache/spark/ml/linalg/JsonVectorConverterSuite.scala
Loading
Please register or sign in to comment