Skip to content

Can torchmetrics Metrics class be used as loss function? #831

Answered by justusschock
EvanZ asked this question in Q&A
Discussion options

You must be logged in to vote

I just moved this discussion to the correct repository :)

@Borda is right, if the metric is differentiable w.r.t it's input this is not an issue. You can check this on our class interface by the is_differentiable property. For your currently used metric (TweedieDeviance) this holds as you can see here

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@EvanZ
Comment options

Answer selected by Borda
Comment options

You must be logged in to vote
1 reply
@justusschock
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants