
Shannon entropy impurity (Geron Ch 6, morie.fn hment)
Source:R/geron_ml2_native.R
morie_geron_entropy_impurity.RdH = -sum_k p_k log2 p_k, in bits, with the nats conversion and the log2(K) ceiling alongside.
Value
List with entropy, entropy_nats, proportions,
classes, counts, n_classes, max_possible, estimate, n.
Examples
if (morie_crypto_liboqs_available()) {
V <- c(1, 2, 3, 4, 5, 6, 7, 8)
morie_geron_entropy_impurity(V)
}