Open fducau opened 1 year ago
When running the LinearEvaluation module I get the following error:
LinearEvaluation
TypeError: Accuracy.__new__() missing 1 required positional argument: 'task'
and similar when calling torchmetrics.AveragePrecision without the task argument
torchmetrics.AveragePrecision
task
Proposed solution
self.accuracy = torchmetrics.Accuracy( task="multilabel", num_labels=output_dim ) self.average_precision = torchmetrics.AveragePrecision( task='multilabel', num_labels=output_dim, pos_label=1 )
When running the
LinearEvaluation
module I get the following error:and similar when calling
torchmetrics.AveragePrecision
without thetask
argumentProposed solution