[ 
https://issues.apache.org/jira/browse/SPARK-3048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xiangrui Meng updated SPARK-3048:
---------------------------------

    Description: `LabeledPointParser` is used in `MLUtils.loadLabeledPoint`. 
Making it public may be useful to parse labeled points from other data sources, 
e.g., DStream. Now we have a util function called 
`MLUtils.loadStreamingLabeledPoints`, which increases the complexity of the 
API. I really want to make `parse` as a method of `LabeledPoint$` instead of 
creating a new class `LabeledPointParser`, but it is hard to extend a case 
class with a static method in a binary compatible way.  (was: 
`LabeledPointParser` is used in `MLUtils.loadLabeledPoint`. Making it public 
may be useful to parse labeled points from other data sources, e.g., DStream. 
Now we have a util function called `MLUtils.loadStreamingLabeledPoints`, which 
increases the complexity of the API. I really want to make `parse` as a method 
of `LabeledPoint$` instead of creating a new class `LabeledPointParser`, but it 
is hard to extend a case class with a static method.)

> Make LabeledPointParser public
> ------------------------------
>
>                 Key: SPARK-3048
>                 URL: https://issues.apache.org/jira/browse/SPARK-3048
>             Project: Spark
>          Issue Type: Improvement
>          Components: MLlib
>            Reporter: Xiangrui Meng
>            Assignee: Xiangrui Meng
>
> `LabeledPointParser` is used in `MLUtils.loadLabeledPoint`. Making it public 
> may be useful to parse labeled points from other data sources, e.g., DStream. 
> Now we have a util function called `MLUtils.loadStreamingLabeledPoints`, 
> which increases the complexity of the API. I really want to make `parse` as a 
> method of `LabeledPoint$` instead of creating a new class 
> `LabeledPointParser`, but it is hard to extend a case class with a static 
> method in a binary compatible way.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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

Reply via email to