Skip to main content

classify

Function classify 

Source
pub fn classify(
    lessons: &[Lesson],
    jobs: usize,
    ask: &Ask,
) -> (Vec<Verdict>, f64)
Expand description

Classifies lessons with one model call each (jobs at a time). Returns the verdicts and the cost. After runner::MAX_FAILURES failed calls before the first answer the model is unavailable: the rest are not asked (they stay candidates for the next run).