Registry / Library

library · v0.1.1
Classification
Measure threshold decisions, false alarms, missed positives and their costs.
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
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP | d22aecbe93 | 0b643521db95b3a6584aeee26e6612c8010d84b3ad58f29857037fb5a4a27874 |