Skip to main content

information_gain

Function information_gain 

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

Entropy of the parent minus the weighted entropy of the children.