h2o.which_max {h2o} | R Documentation |
Which indice contains the max value?
Description
Get the index of the max value in a column or row
Usage
h2o.which_max(x, na.rm = TRUE, axis = 0)
which.max.H2OFrame(x, na.rm = TRUE, axis = 0)
which.min.H2OFrame(x, na.rm = TRUE, axis = 0)
Arguments
x |
An H2OFrame object. |
na.rm |
|
axis |
|
Value
Returns an H2OFrame object.
See Also
which.min
for the base R method, which.max()
.
Examples
## Not run:
library(h2o)
h2o.init()
f <- "https://s3.amazonaws.com/h2o-public-test-data/smalldata/chicago/chicagoCensus.csv"
census <- h2o.importFile(f)
census[, 1] <- as.factor(census[, 1])
dl_model <- 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_max(census["PER CAPITA INCOME "], na.rm = FALSE, axis = 0)
## End(Not run)
[Package h2o version 3.44.0.3 Index]