Skip to main content

quantize_leaf

Function quantize_leaf 

Source
pub fn quantize_leaf(leaf_value: f64, learning_rate: f64) -> f32
Expand description

Quantize a leaf value with learning rate baked in.

Returns lr * leaf_value as f32.