Retrieve Model Score History
h2o.scoreHistory(object)
object | An H2OModel object. |
---|
# NOT RUN { library(h2o) h2o.init() f <- "https://s3.amazonaws.com/h2o-public-test-data/smalldata/junit/cars_20mpg.csv" cars <- h2o.importFile(f) cars["economy_20mpg"] <- as.factor(cars["economy_20mpg"]) predictors <- c("displacement","power","weight","acceleration","year") response <- "economy_20mpg" cars.split <- h2o.splitFrame(data = cars,ratios = 0.8, seed = 1234) train <- cars.split[[1]] valid <- cars.split[[2]] cars_gbm <- h2o.gbm(x = predictors, y = response, training_frame = train, validation_frame = valid, seed = 1234) h2o.scoreHistory(cars_gbm) # }