Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OvO support on AUROC #604

Closed
chris-tkinter opened this issue Nov 3, 2021 · 1 comment · Fixed by #1195
Closed

OvO support on AUROC #604

chris-tkinter opened this issue Nov 3, 2021 · 1 comment · Fixed by #1195
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@chris-tkinter
Copy link

🚀 Feature

Hi in the sklearn API there is a multi_class parameters which can be set to ‘ovr or ‘ovo'. But it seems that this is not yet implemented in the torchmetrics.

Motivation

In sklearn we can compute ovo AUC, but currently this is not supported

tm = AUROC(num_classes=7, average='macro')
x = torch.randn(100, 7).softmax(1)
y = torch.randint(7, (100, ))
print(tm(x, y), roc_auc_score(y, x, average="macro", multi_class="ovo"))

Additional context

Using torchmetrics 0.6.0

@chris-tkinter chris-tkinter added the enhancement New feature or request label Nov 3, 2021
@SkafteNicki SkafteNicki added this to the v0.9 milestone Mar 23, 2022
@SkafteNicki SkafteNicki modified the milestones: v0.9, v0.10 May 12, 2022
@SkafteNicki
Copy link
Member

Issue will be closed by classification refactor: see this issue #1001 and this PR #1195 for all changes

Small recap: This issue ask for support that one-vs-one approach for calculating auroc in multiclass settings. During the refactor it was determined that we do not want to pursue this approach and still only support one-vs-the-rest for calculating roc, auroc etc.

Issue will be closed when #1195 is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants