fn print_section_accuracy(&self, section: &str, counts: &Counts) {
        if counts.n_instances == 0 {
            eprintln!("{}: no evaluation instances", section);
            return;
        }

        println!(
            "{}: {}/{} correct, accuracy: {:.2}, avg cos: {:1.2}, skipped: {}",
            section,
            counts.n_correct,
            counts.n_instances,
            (counts.n_correct as f64 / counts.n_instances as f64) * 100.,
            (counts.sum_cos / counts.n_instances as f32),
            counts.n_skipped,
        );
    }
/// Print the accuracy for a section.
Print the accuracy for a section.
Print the accuracy for a section .
fn print_section_accuracy(&self, section: &str, counts: &Counts) {
        if counts.n_instances == 0 {
            eprintln!("{}: no evaluation instances", section);
            return;
        }
        println!(
            "{}: {}/{} correct, accuracy: {:.2}, avg cos: {:1.2}, skipped: {}",
            section,
            counts.n_correct,
            counts.n_instances,
            (counts.n_correct as f64 / counts.n_instances as f64) * 100.,
            (counts.sum_cos / counts.n_instances as f32),
            counts.n_skipped,
        );
    }
fn print_section_accuracy ( & self , section : & str , counts : & Counts ) { if counts . n_instances == 0 { eprintln ! ( " " section ) ; return ; } println ! ( " " section counts n_correct counts n_instances ( counts n_correct as f64 counts n_instances as f64 ) 100. ( counts sum_cos counts n_instances as f32 ) counts n_skipped ) ; }
Print the accuracy for a section.
Print the accuracy for a section .
&self
section
&str
counts
&Counts
&self
section
&str
counts
&Counts