error_rate {fastai}R Documentation

Error rate

Description

1 - 'accuracy'

Usage

error_rate(inp, targ, axis = -1)

Arguments

inp

The predictions of the model

targ

The corresponding labels

axis

Axis

Value

tensor

Examples


## Not run: 

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



## End(Not run)



[Package fastai version 2.2.2 Index]