h2o.aecu_table function

Retrieve the all types of AECU (average excess cumulative uplift) value in a table

Retrieve the all types of AECU (average excess cumulative uplift) value in a table

Retrieves the all types of AECU value in a table from an H2OBinomialUpliftMetrics . If "train" and "valid" parameters are FALSE (default), then the training AECU values are returned. If more than one parameter is set to TRUE, then a named vector of AECU values are returned, where the names are "train", "valid".

h2o.aecu_table(object, train = FALSE, valid = FALSE)

Arguments

  • object: An H2OBinomialUpliftMetrics
  • train: Retrieve the training AECU values table
  • valid: Retrieve the validation AECU values table

Examples

## Not run: library(h2o) h2o.init() f <- "https://s3.amazonaws.com/h2o-public-test-data/smalldata/uplift/criteo_uplift_13k.csv" train <- h2o.importFile(f) train$treatment <- as.factor(train$treatment) train$conversion <- as.factor(train$conversion) model <- h2o.upliftRandomForest(training_frame=train, x=sprintf("f%s",seq(0:10)), y="conversion", ntrees=10, max_depth=5, treatment_column="treatment", auuc_type="AUTO") perf <- h2o.performance(model, train=TRUE) h2o.aecu_table(perf) ## End(Not run)
  • Maintainer: Tomas Fryda
  • License: Apache License (== 2.0)
  • Last published: 2024-01-11