Skip to main content

label_totals

Function label_totals 

Source
fn label_totals(samples: &[(TreeSample, f64)]) -> (f64, f64, f64)
Expand description

Sum of weights, weighted sum and weighted sum-of-squares of a node’s labels, in f64 for the variance math. Each sample carries its recency weight alongside it.