Get the index of the min value in a column or row
h2o.which_min(x, na.rm = TRUE, axis = 0)
x | An H2OFrame object. |
---|---|
na.rm |
|
axis |
|
Returns an H2OFrame object.
which.min
for the base R method.
# NOT RUN { library(h2o) h2o.init() f <- "https://s3.amazonaws.com/h2o-public-test-data/smalldata/chicago/chicagoCensus.csv" census <- h2o.importFile(f) dlmodel <- h2o.deeplearning(x = c(1:3), y = 4, hidden = c(17,191), epochs = 1, training_frame = census, balance_classes = FALSE, export_weights_and_biases = TRUE) h2o.which_min(census["PER CAPITA INCOME "], na.rm = FALSE, axis = 0) # }