Macro Confusionmatrix

Source
macro_rules! Confusionmatrix {
    ($true_positive:expr, $true_negative:expr, $false_positive:expr, $false_negative:expr) => { ... };
}
Expand description

Confusionmatrix takes in four fields which are expresions which is converted into the confusion_matrix struct of the metrics module

§Example:

~~~~
#[macro_use(Confusionmatrix)]
extern crate deeprust;
fn main() {
	let sample = Confusionmatrix!(100,50,10,5);
}
~~~~