GitHub user zhengruifeng opened a pull request:
https://github.com/apache/spark/pull/12925
[SPARK-15149][DOC] include python example for kmeans
## What changes were proposed in this pull request?
Python example for ml.kmeans already exists, but not included in user guide.
1,add {example_on} {example_off} in kmeans_example.py
2,add it to user guide
## How was this patch tested?
manual tests
`./bin/spark-submit examples/src/main/python/ml/kmeans_example.py
data/mllib/kmeans_data.txt 2`
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zhengruifeng/spark km_pe
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12925.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 #12925
----
commit 221ea4d9c3a24ea599ca72dffd74ac06e115249d
Author: Zheng RuiFeng <[email protected]>
Date: 2016-05-05T06:56:42Z
link py example for kmeans
----
---
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]