You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiangrui Meng (JIRA)" <ji...@apache.org> on 2015/07/02 02:19:04 UTC

[jira] [Created] (SPARK-8774) Add R model formula with basic support as a transformer

Xiangrui Meng created SPARK-8774:
------------------------------------

             Summary: Add R model formula with basic support as a transformer
                 Key: SPARK-8774
                 URL: https://issues.apache.org/jira/browse/SPARK-8774
             Project: Spark
          Issue Type: New Feature
          Components: ML, SparkR
            Reporter: Xiangrui Meng


To have better integration with SparkR, we can add a feature transformer to support R formula. A list of operators R supports can be find here: http://ww2.coastal.edu/kingw/statistics/R-tutorials/formulae.html

The initial version should support "~", "+", and "." on numeric columns and we can expand it in the future.

{code}
val formula = new RModelFormula()
  .setFormula("y ~ x + z")
{code}

The output should append two new columns: features and label.



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