fn calibrate(
path: &Path,
ids: &[usize],
text: &dyn Fn(usize) -> String,
messages: &[Message],
sources: &[String],
options: &Options,
word_ngrams: u32,
lr: f64,
cancel: &Cancel,
) -> Result<(Platt, u64, Option<f64>), LearnError>Expand description
Platt’s sigmoid for a model of ids: in each account’s and each outside
source’s mail of each label, the newest fifth of ids scored by a model
of the rest; fitted on your own mail’s part (all of it when your own
lacks a kind). With how many scores it was fitted on, and the AUC of all.