Blyx Nest Blyx language
Registry / Library
library · v0.1.1

Classification

Measure threshold decisions, false alarms, missed positives and their costs.

Source repository · Package JSON

Use Classification

use vendor::classification::classification;

Run the example

nest demo classification@0.1.1
blyxc native-run classification-demo/main.blyx
Example source and expected output
use vendor::classification::classification;

fn main() {
    let table = class_confusion([1, 0, 1, 0], [0.9, 0.6, 0.4, 0.1], 0.5);
    println!(class_precision(at(table, 0), at(table, 1)));
    println!(class_recall(at(table, 0), at(table, 3)));
    println!(class_cost(at(table, 1), at(table, 3), 1.0, 5.0));
}

Expected output

0.5
0.5
6

Published versions

VersionPackageSource commitSHA-256
0.1.1Download ZIPd22aecbe930b643521db95b3a6584aeee26e6612c8010d84b3ad58f29857037fb5a4a27874