Return-Path: X-Original-To: apmail-spark-issues-archive@minotaur.apache.org Delivered-To: apmail-spark-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F271517708 for ; Mon, 30 Mar 2015 08:01:14 +0000 (UTC) Received: (qmail 52293 invoked by uid 500); 30 Mar 2015 08:01:11 -0000 Delivered-To: apmail-spark-issues-archive@spark.apache.org Received: (qmail 52267 invoked by uid 500); 30 Mar 2015 08:01:11 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 52250 invoked by uid 99); 30 Mar 2015 08:01:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2015 08:01:11 +0000 Date: Mon, 30 Mar 2015 08:01:11 +0000 (UTC) From: "Xusen Yin (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SPARK-5894) Add PolynomialMapper MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SPARK-5894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14386346#comment-14386346 ] Xusen Yin commented on SPARK-5894: ---------------------------------- [~mengxr] [~josephkb] Do you have time to check it? Thanks! > Add PolynomialMapper > -------------------- > > Key: SPARK-5894 > URL: https://issues.apache.org/jira/browse/SPARK-5894 > Project: Spark > Issue Type: Sub-task > Components: ML > Reporter: Xiangrui Meng > > `PolynomialMapper` takes a vector column and outputs a vector column with polynomial feature mapping. > {code} > val poly = new PolynomialMapper() > .setInputCol("features") > .setDegree(2) > .setOutputCols("polyFeatures") > {code} > It should handle the output feature names properly. Maybe we can make a better name for it instead of calling it `PolynomialMapper`. -- 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