Learn R Programming

h2o (version 3.44.0.3)

h2o.make_leaderboard: Create a leaderboard from a list of models, grids and/or automls.

Description

Create a leaderboard from a list of models, grids and/or automls.

Usage

h2o.make_leaderboard(
  object,
  leaderboard_frame,
  sort_metric = "AUTO",
  extra_columns = c(),
  scoring_data = c("AUTO", "train", "valid", "xval")
)

Value

data.frame

Arguments

object

List of models, automls, or grids; or just single automl/grid object.

leaderboard_frame

Frame used for generating the metrics (optional).

sort_metric

Metric used for sorting the leaderboard.

extra_columns

What extra columns should be calculated (might require leaderboard_frame). Use "ALL" for all available or list of extra columns.

scoring_data

Metrics to be reported in the leaderboard ("xval", "train", or "valid"). Used if no leaderboard_frame is provided.

Examples

Run this code
if (FALSE) {
library(h2o)
h2o.init()
iris_hf <- as.h2o(iris)
grid <- h2o.grid("gbm", x = c(1:4), y = 5, training_frame = iris_hf,
                 hyper_params = list(ntrees = c(1, 2, 3)))
h2o.make_leaderboard(grid, iris_hf)
}

Run the code above in your browser using DataLab