Skip to content
  • Xiangrui Meng's avatar
    0847fe4e
    [SPARK-14653][ML] Remove json4s from mllib-local · 0847fe4e
    Xiangrui Meng authored
    ## 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.
    0847fe4e
    [SPARK-14653][ML] Remove json4s from mllib-local
    Xiangrui Meng authored
    ## 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.
Loading