Github user NarineK commented on a diff in the pull request:
https://github.com/apache/spark/pull/8870#discussion_r40129611
--- 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 --
I see , I can change it to model <- glm(Sepal_Length ~ Sepal_Width, df,
family="gaussian"), since it is an example.
And also, it seems that there is a problem when I set: family="binomial",
at least in my environment. An error is being thrown.
---
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]