R/losses.R
error_rate.Rd
1 - `accuracy`
error_rate(inp, targ, axis = -1)
The predictions of the model
The corresponding labels
Axis
tensor
if (FALSE) { learn = cnn_learner(dls, resnet34(), metrics = error_rate) }