error_rate {fastai} | R Documentation |
1 - 'accuracy'
error_rate(inp, targ, axis = -1)
inp |
The predictions of the model |
targ |
The corresponding labels |
axis |
Axis |
tensor
## Not run:
learn = cnn_learner(dls, resnet34(), metrics = error_rate)
## End(Not run)