h2o.entropy

0th

Percentile

Shannon entropy

Return the Shannon entropy of a string column. If the string is empty, the entropy is 0.

Usage
h2o.entropy(x)
Arguments
x

The column on which to calculate the entropy.

Aliases
  • h2o.entropy
Examples
# NOT RUN {
library(h2o)
h2o.init()
buys <- as.h2o(c("no", "no", "yes", "yes", "yes", "no", "yes", "no", "yes", "yes","no"))
buys_entropy <- h2o.entropy(buys)
# }
Documentation reproduced from package h2o, version 3.24.0.5, License: Apache License (== 2.0)

Community examples

Looks like there are no examples yet.