Github user felixcheung commented on a diff in the pull request:
https://github.com/apache/spark/pull/16214#discussion_r91765125
--- Diff: docs/sparkr.md ---
@@ -472,21 +472,17 @@ should fit in a single machine. If that is not the
case they can do something li
`dapply`
<div data-lang="r" markdown="1">
-{% highlight r %}
-# Perform distributed training of multiple models with spark.lapply. Here,
we pass
-# a read-only list of arguments which specifies family the generalized
linear model should be.
-families <- c("gaussian", "poisson")
-train <- function(family) {
- model <- glm(Sepal.Length ~ Sepal.Width + Species, iris, family = family)
- summary(model)
-}
-# Return a list of model's summaries
--- End diff --
ditto, but minor here
---
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]