Applying FocalLoss in fastai

That is really cool, I wanted to know how you can use pytorch functions. Are you thinking there is any downside in using pytorch functions?

I couldn’t it as a pre built function in v3, but i re-watched lesson 9 and it seem(I haven’t tried it) like all you would have to do is define it and use it as the loss function. Here is the part of the video he talked about focal loss.

the lecture 9 notes also talk from timlee also talk about focal loss.

1 Like