We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc8bbe3 commit 1a317acCopy full SHA for 1a317ac
R/pkg/R/mllib.R
@@ -1946,7 +1946,8 @@ print.summary.RandomForestClassificationModel <- function(x, ...) {
1946
#' summary(savedModel)
1947
#'
1948
#' # fit a Gradient Boosted Tree Classification Model
1949
-#' df <- createDataFrame(iris)
+#' # label must be binary - Only binary classification is supported for GBT.
1950
+#' df <- createDataFrame(iris[iris$Species != "virginica", ])
1951
#' model <- spark.gbt(df, Species ~ Petal_Length + Petal_Width, "classification")
1952
#' }
1953
#' @note spark.gbt since 2.1.0
0 commit comments