h2o.entropy | R Documentation |
Return the Shannon entropy of a string column. If the string is empty, the entropy is 0.
h2o.entropy(x)
x |
The column on which to calculate the entropy. |
## 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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.