You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/08/05 22:32:05 UTC
[jira] [Commented] (SPARK-5895) Add VectorSlicer
[ https://issues.apache.org/jira/browse/SPARK-5895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14658850#comment-14658850 ]
Apache Spark commented on SPARK-5895:
-------------------------------------
User 'jkbradley' has created a pull request for this issue:
https://github.com/apache/spark/pull/7972
> Add VectorSlicer
> ----------------
>
> Key: SPARK-5895
> URL: https://issues.apache.org/jira/browse/SPARK-5895
> Project: Spark
> Issue Type: Sub-task
> Components: ML
> Reporter: Xiangrui Meng
> Assignee: Xusen Yin
>
> `VectorSlicer` takes a vector column and output a vector column with a subset of features.
> {code}
> val vs = new VectorSlicer()
> .setInputCol("user")
> .setSelectedFeatures("age", "salary")
> .setOutputCol("usefulUserFeatures")
> {code}
> We should allow specifying selected features by indices and by names. It should preserve the output names.
--
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