Xiangrui Meng created SPARK-5885:
------------------------------------

             Summary: 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


`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}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to