MNISTData.validate_inferred_batch_predictions#

static MNISTData.validate_inferred_batch_predictions(batch_predictions, n_classes: Optional[int] = None, eps: float = 0.001)[source]#

Validate the inferred predictions from the batch.

Parameters
batch_predictionst.Any

The inferred predictions from the batch

n_classesint , default: None

Number of classes.

epsfloat , default: 1e-3

Epsilon value to be used in the validation, by default 1e-3

Raises
ValidationError

If predictions format is invalid