error_rate: Error rate

View source: R/losses.R

error_rateR 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)



fastai documentation built on March 31, 2023, 11:41 p.m.