.FastAI
blocklossfn
function
defined in module
FastAI
blocklossfn(predblock, yblock)
Construct a loss function that compares a batch of model outputs
ŷs
and encoded targets
ys
and returns a scalar loss.
For example for
block = OneHotLabel(classes)
(i.e. an encoded
Label(classes)
), we have
blocklossfn(block, block) == Flux.Losses.logitcrossentropy
.
There are
8
methods for FastAI.blocklossfn
:
The following pages link back here:
blocks/continuous.jl , datablock/loss.jl , datablock/task.jl , datablock/wrappers.jl , encodings/onehot.jl , FastTabular.jl , FastVision.jl , encodings/keypointpreprocessing.jl , encodings/onehot.jl