Skip to main content

weighted_entropy

Function weighted_entropy 

Source
pub fn weighted_entropy(
    parent_distribution: &[usize],
    left_distribution: &[usize],
    right_distribution: &[usize],
    _parent_entropy: f64,
) -> f64
Expand description

Weighted entropy of the two children; infinite when a child is empty.