Struct juice::solver::confusion_matrix::ConfusionMatrix[][src]

pub struct ConfusionMatrix { /* fields omitted */ }
Expand description

Implementations

Create a ConfusionMatrix that analyzes the prediction of num_classes classes.

Add a sample by providing the expected target class and the prediction.

Add a batch of samples.

See add_sample.

Get the predicted classes from the output of a network.

The prediction for each sample of the batch is found by determining which output value had the smallest loss.

Set the capacity of the ConfusionMatrix

Return all collected samples.

Return the accuracy of the collected predictions.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.