I am trying to calculate the auc value but getting error.How to resolve it?

My code is below:-
def test(dataloader,model):
for data in dataloader:
inputs, labels = data
outputs = model(inputs)
_, predicted = torch.max(outputs.data, 1)
c = (predicted == labels).squeeze().cpu().numpy()
return y_score,y


b = y_score[0].detach().numpy()


from sklearn import metrics
fpr, tpr, thresholds = metrics.roc_curve(c,b)
roc_auc = auc(fpr, tpr)

Error which I got is below:-
ValueError: unknown format is not supported

In this b is 2class classification and c is 5class classification.How to make c of 2 class from 5 class classification

please reformat your code using the back ticks

@ecdrid Aditya Can u please let me know what do u mean by reformatting the code?

like wrap your code with the backticks ``` …
Plus roc-auc isn’t defined like that for multi-class/multi-label classification…
Check this out link

Sure I will do that Thanks for ur response