You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Alexis Seigneurin (JIRA)" <ji...@apache.org> on 2015/10/12 17:52:05 UTC

[jira] [Commented] (SPARK-5885) Add VectorAssembler

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

Alexis Seigneurin commented on SPARK-5885:
------------------------------------------

{quote}
I tried to create a pipeline in which the output of a VectorAssembler was fed into a StandardScaler. This fails because the Assembler produced a sparse vector whereas the scaler expected a dense vector.
{quote}

I come across the same issue. Has this been addressed?

> Add VectorAssembler
> -------------------
>
>                 Key: SPARK-5885
>                 URL: https://issues.apache.org/jira/browse/SPARK-5885
>             Project: Spark
>          Issue Type: Sub-task
>          Components: ML
>            Reporter: Xiangrui Meng
>            Assignee: Xiangrui Meng
>             Fix For: 1.4.0
>
>
> `VectorAssembler` takes a list of columns (of type double/int/vector) and merge them into a single vector column.
> {code}
> val va = new VectorAssembler()
>   .setInputCols("userFeatures", "dayOfWeek", "timeOfDay")
>   .setOutputCol("features")
> {code}
> In the first version, it should be okay if it doesn't handle ML attributes (SPARK-4588).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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