Skip to content
Snippets Groups Projects
  • Xiangrui Meng's avatar
    7e70708a
    [SPARK-3048][MLLIB] add LabeledPoint.parse and remove loadStreamingLabeledPoints · 7e70708a
    Xiangrui Meng authored
    Move `parse()` from `LabeledPointParser` to `LabeledPoint` and make it public. This breaks binary compatibility only when a user uses synthesized methods like `tupled` and `curried`, which is rare.
    
    `LabeledPoint.parse` is more consistent with `Vectors.parse`, which is why `LabeledPointParser` is not preferred.
    
    freeman-lab tdas
    
    Author: Xiangrui Meng <meng@databricks.com>
    
    Closes #1952 from mengxr/labelparser and squashes the following commits:
    
    c818fb2 [Xiangrui Meng] merge master
    ce20e6f [Xiangrui Meng] update mima excludes
    b386b8d [Xiangrui Meng] fix tests
    2436b3d [Xiangrui Meng] add parse() to LabeledPoint
    7e70708a
    History
    [SPARK-3048][MLLIB] add LabeledPoint.parse and remove loadStreamingLabeledPoints
    Xiangrui Meng authored
    Move `parse()` from `LabeledPointParser` to `LabeledPoint` and make it public. This breaks binary compatibility only when a user uses synthesized methods like `tupled` and `curried`, which is rare.
    
    `LabeledPoint.parse` is more consistent with `Vectors.parse`, which is why `LabeledPointParser` is not preferred.
    
    freeman-lab tdas
    
    Author: Xiangrui Meng <meng@databricks.com>
    
    Closes #1952 from mengxr/labelparser and squashes the following commits:
    
    c818fb2 [Xiangrui Meng] merge master
    ce20e6f [Xiangrui Meng] update mima excludes
    b386b8d [Xiangrui Meng] fix tests
    2436b3d [Xiangrui Meng] add parse() to LabeledPoint