GitHub user NarineK opened a pull request:
https://github.com/apache/spark/pull/11793
[SPARK-13982][SparkR] Fixed features column header
## What changes were proposed in this pull request?
In KMean's predict the output column name of the features was set to
something like this: "vecAssembler_522ba59ea239__output", which is the default
output column name of the "VectorAssembler".
I set a value "features" which is more intuitive and human readable
**Before fix: **
predict(model, training)
DataFrame[Sepal_Length:double, Sepal_Width:double, Petal_Length:double,
Petal_Width:double, **vecAssembler_522ba59ea239__output:**vector,
prediction:int]
**After fix: **
DataFrame[Sepal_Length:double, Sepal_Width:double, Petal_Length:double,
Petal_Width:double, **features:**vector, prediction:int]
## How was this patch tested?
All previous test cases pass!
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/NarineK/spark sparkrimprovements
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11793.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 #11793
----
commit 48061de21addf5b021f874fa93cddb2882959042
Author: NarineK <[email protected]>
Date: 2016-03-17T20:00:10Z
Fixed features column header
----
---
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]