spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiangrui Meng (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-5885) Add VectorAssembler
Date Wed, 18 Feb 2015 18:49:11 GMT
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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message