Github user NarineK commented on a diff in the pull request:
https://github.com/apache/spark/pull/8870#discussion_r40131267
--- Diff: R/pkg/R/mllib.R ---
@@ -41,7 +41,8 @@ setClass("PipelineModel", representation(model = "jobj"))
#' sqlContext <- sparkRSQL.init(sc)
#' data(iris)
#' df <- createDataFrame(sqlContext, iris)
-#' model <- glm(Sepal_Length ~ Sepal_Width, df)
+#' model <- glm(Sepal_Length ~ Sepal_Width, df,
family=c("gaussian","binomial"))
--- End diff --
And if we specify a list it is taking the first one:
family=c("gaussian","binomial")
summary(model)
$coefficients
Estimate
(Intercept) 6.5262226
Sepal_Width -0.2233611
family = "gaussian"
summary(model)
$coefficients
Estimate
(Intercept) 6.5262226
Sepal_Width -0.2233611
---
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]