Skip to main content

fold

Function fold 

Source
fn fold(
    model: &FastText,
    scalars: &[f32],
    sigmoid: Platt,
    options: &Options,
    split: &Split,
) -> Table
Expand description

The model folded into the classifier’s table (table::Kind::Rows): each known word’s rows’ sum (its own and its n-grams’, as fastText lists them), each bucket’s scalar, the end of the line’s as the bias.