GitHub user yanboliang opened a pull request:
https://github.com/apache/spark/pull/9302
[SPARK-11349] [ML] Support transform string label for RFormula
Currently ```RFormula``` can only handle label with ```NumericType``` or
```BinaryType``` (cast it to ```DoubleType``` as the label of Linear Regression
training), we should also support label of ```StringType``` which is needed for
Logistic Regression (glm with family = "binomial").
For label of ```StringType```, we should use ```StringIndexer``` to
transform it to 0-based index.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/yanboliang/spark spark-11349
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/9302.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #9302
----
commit 233ce5f3f672b71c20d91b8cbe73d45d615f14f9
Author: Yanbo Liang <[email protected]>
Date: 2015-10-27T14:57:49Z
Support transform string label for RFormula
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]