oa::vision::confusion_matrix

Accumulate an integer classification confusion matrix. Rows are targets and columns are predictions. Either label being outside [0, class_count) ignores that element. Errors Returns an error unless inputs are equal nonempty I32 vectors on one engine, class_count is positive, and all sizes fit the shader ABI.

FnRust public API

Function Documentation

pub fn confusion_matrix( predicted: &Matrix, target: &Matrix, class_count: i32 ) -> Result<Matrix>
Accumulate an integer classification confusion matrix. Rows are targets and columns are predictions. Either label being outside [0, class_count) ignores that element. Errors Returns an error unless inputs are equal nonempty I32 vectors on one engine, class_count is positive, and all sizes fit the shader ABI.