[
https://issues.apache.org/jira/browse/SPARK-21482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16094295#comment-16094295
]
Aseem Bansal commented on SPARK-21482:
--------------------------------------
I am using Java API. I tried a simple transformation with
{noformat}
dataset.transform(MyCustomToLabeledPointTransformer::transformer,
Encoders.bean(LabeledPoint.class))
{noformat}
and it threw bean-compliance exception. I am not sure whether the encoders
should act on beans or not but clearly something is going on due to which they
are acting on beans.
> Make LabeledPoint bean-compliant so it can be used in
> Encoders.bean(LabeledPoint.class)
> ---------------------------------------------------------------------------------------
>
> Key: SPARK-21482
> URL: https://issues.apache.org/jira/browse/SPARK-21482
> Project: Spark
> Issue Type: Improvement
> Components: ML
> Affects Versions: 2.1.0
> Reporter: Aseem Bansal
> Priority: Minor
>
> The LabeledPoint class is currently not bean-compliant as per spark
> https://spark.apache.org/docs/2.1.0/api/scala/index.html#org.apache.spark.ml.feature.LabeledPoint
> This makes it impossible to create a LabeledPoint via a dataset.tranform. It
> should be made bean-compliant so it can be used.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]