[ 
https://issues.apache.org/jira/browse/SPARK-24283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16479405#comment-16479405
 ] 

Huaxin Gao commented on SPARK-24283:
------------------------------------

[~holdenk] Hi Holden, all I need to do is to change 
{code:java}
val transformer: Vector => Vector = v => 
scaler.transform(OldVectors.fromML(v)).asML{code}
 to
{code:java}
val transformer: Vector => Vector = v => scaler.transform(v).asML{code}
so it will use the implicit converting, right?

> Make standard scaler work without legacy MLlib
> ----------------------------------------------
>
>                 Key: SPARK-24283
>                 URL: https://issues.apache.org/jira/browse/SPARK-24283
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML
>    Affects Versions: 2.4.0
>            Reporter: holdenk
>            Priority: Trivial
>              Labels: starter
>
> Currently StandardScaler converts Spark ML vectors to MLlib vectors during 
> prediction, we should skip that step.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to