Github user yinxusen commented on the pull request:
https://github.com/apache/spark/pull/11126#issuecomment-183814813
@keypointt I recommend adding the following code to the example, too. Then
delete previous code from line 55-67. Meanwhile, we should move the line 53
ahead and rephrase it.
```scala
// Export the model to a String in PMML format
clusters.toPMML
// Export the model to a local file in PMML format
clusters.toPMML("/tmp/kmeans.xml")
// Export the model to a directory on a distributed file system in PMML
format
clusters.toPMML(sc,"/tmp/kmeans")
// Export the model to the OutputStream in PMML format
clusters.toPMML(System.out)
```
@mengxr If we don't use https://github.com/apache/spark/pull/9430, I
suggest to add those code together into a single file and rephrase those lines
among those code snippets. Otherwise we get the following result:
<img width="856" alt="screen shot 2016-02-13 at 7 33 28 pm"
src="https://cloud.githubusercontent.com/assets/2637239/13031617/d1c46a6c-d288-11e5-9065-9b30ffcc5e29.png">
---
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]