Return the GLM coefficient names without building the actual GLM model by setting max_iterations=0.

h2o.coef_names(object)

Arguments

object

an H2OModel object.

Examples

if (FALSE) {
library(h2o)
h2o.init()

f <- "https://s3.amazonaws.com/h2o-public-test-data/smalldata/junit/cars_20mpg.csv"
cars <- h2o.importFile(f)
predictors <- c("displacement", "power", "weight", "acceleration", "year")
response <- "cylinders"
cars_glm <- h2o.glm(balance_classes = TRUE,
                    seed = 1234,
                    x = predictors,
                    y = response,
                    training_frame = cars,
                    max_iterations=0)
h2o.coef_names(cars_glm)
}