GitHub user yanboliang opened a pull request:
https://github.com/apache/spark/pull/12573
[SPARK-14312] [ML] [SparkR] NaiveBayes model persistence in SparkR
## What changes were proposed in this pull request?
SparkR NaiveBayesModel support save/load by the following API:
```
df <- createDataFrame(sqlContext, infert)
model <- naiveBayes(education ~ ., df, laplace = 0)
ml.save(model, path, mode = FALSE)
model2 <- ml.load(path)
```
## How was this patch tested?
Add unit tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/yanboliang/spark spark-14312
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12573.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 #12573
----
commit 6aae80661c3eb8af55cdc976f8da06e4b730524b
Author: Yanbo Liang <[email protected]>
Date: 2016-04-21T11:04:04Z
NaiveBayes model persistence in SparkR
commit d23ecd6d682d8165578847e29f08e10b559f7710
Author: Yanbo Liang <[email protected]>
Date: 2016-04-21T11:17:17Z
Add test cases
commit eb3c9ca2f18e213fa84a2537b59096dd37b57eed
Author: Yanbo Liang <[email protected]>
Date: 2016-04-21T11:23:53Z
fix docs
----
---
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]