Skip to main content

fold

Function fold 

Source
fn fold(
    language: &FastText,
    model: &Model,
    mean: &[f64],
    deviation: &[f64],
    sigmoid: Platt,
    options: &Options,
    split: &Split,
) -> Table
Expand description

The model folded into the reduced table (spam-core-api.md): with u = w/σ over the vector’s dimensions, each vocabulary word’s scalar is u · get_word_vector(word), each bucket’s u · its input row; the standardization’s means become text_mean = u · μ and the header means.