Function foreach_feature_with_state

Source
pub fn foreach_feature_with_state<F, W>(
    model_offset: ModelIndex,
    features: &SparseFeatures,
    weights: &W,
    quadratic_interactions: &[(Namespace, Namespace)],
    cubic_interactions: &[(Namespace, Namespace, Namespace)],
    num_bits: u8,
    constant_feature_enabled: bool,
    func: F,
)
where F: FnMut(f32, &[f32]), W: Weights,