error_rate: Error rate

Description Usage Arguments Value Examples

View source: R/losses.R

Description

1 - 'accuracy'

Usage

1
error_rate(inp, targ, axis = -1)

Arguments

inp

The predictions of the model

targ

The corresponding labels

axis

Axis

Value

tensor

Examples

1
2
3
4
5
6
7
## Not run: 

learn = cnn_learner(dls, resnet34(), metrics = error_rate)



## End(Not run)

fastai documentation built on Oct. 25, 2021, 5:08 p.m.