Skip to main content

finalize_weights

Function finalize_weights 

Source
pub fn finalize_weights(raw_weights: &[f64], nnls_beta: f64) -> Vec<f64>
Expand description

The wrapper’s ensemble-weight post-processing: normalize NNLS weights to sum to 1 (fallback to uniform if the sum is 0), then blend with uniform via nnls_beta.