Learn R Programming

h2o (version 3.44.0.3)

h2o.no_progress: Disable Progress Bar

Description

Disable Progress Bar

Usage

h2o.no_progress(expr)

Value

Value of expr if specified, otherwise NULL.

Arguments

expr

When specified, disable progress bar only for the evaluation of the expr and after the evaluation return to the previous setting (default is to show the progress bar), otherwise disable it globally.

See Also

h2o.show_progress

Examples

Run this code
if (FALSE) {
library(h2o)
h2o.init()
h2o.no_progress()

f <- "https://h2o-public-test-data.s3.amazonaws.com/smalldata/iris/iris_wheader.csv"
iris <- h2o.importFile(f)
iris["class"] <- as.factor(iris["class"])
predictors <- c("sepal_len", "sepal_wid", "petal_len", "petal_wid")
splits <- h2o.splitFrame(iris, ratios = 0.8, seed = 1234)
train <- splits[[1]]
valid <- splits[[2]]

iris_km <- h2o.kmeans(x = predictors, 
                      training_frame = train, 
                      validation_frame = valid, 
                      k = 10, estimate_k = TRUE, 
                      standardize = FALSE, seed = 1234)
}

Run the code above in your browser using DataLab