Skip to content

Accuracy.__new__() missing 1 required positional argument: 'task' #18

@tianjilong123

Description

@tianjilong123

In runner.py line 160, there is an update for the package torchmetrics.Accuracy().
In the updating guidance of the function, the usage are below:
training_accuracy = accuracy(preds, targets, task="binary")
training_accuracy = accuracy(preds, targets, task="multiclass")
training_accuracy = accuracy(preds, targets, task="multilabel")

But I can not figure out which one to choose.
Can anyone help me??? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions