Skip to content

Large changes to classifications #1248

Discussion options

You must be logged in to vote

The problem is the input order
In sklearn it should be metric(truth, preds)
In torchmetrics it should be metric(preds, truth) (we use the this order because it is consistent with loss functions in torch)
Switching the order for the sklearn calculations in your example fixes it.

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@SkafteNicki
Comment options

@jzazo
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@Borda
Comment options

Borda Jun 8, 2023
Maintainer Author

@sraghavm
Comment options

@Borda
Comment options

Borda Jun 8, 2023
Maintainer Author

@SkafteNicki
Comment options

Answer selected by Borda
@sraghavm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants