h2o (version 3.10.3.6)

h2o.entropy: Shannon entropy

Description

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.