Skip to content

Commit 1a317ac

Browse files
committed
update example
1 parent fc8bbe3 commit 1a317ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/pkg/R/mllib.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1946,7 +1946,8 @@ print.summary.RandomForestClassificationModel <- function(x, ...) {
19461946
#' summary(savedModel)
19471947
#'
19481948
#' # fit a Gradient Boosted Tree Classification Model
1949-
#' df <- createDataFrame(iris)
1949+
#' # label must be binary - Only binary classification is supported for GBT.
1950+
#' df <- createDataFrame(iris[iris$Species != "virginica", ])
19501951
#' model <- spark.gbt(df, Species ~ Petal_Length + Petal_Width, "classification")
19511952
#' }
19521953
#' @note spark.gbt since 2.1.0

0 commit comments

Comments
 (0)