Thank for helping me out.I have few questions. I want to calculate the accuracy of the training model.So, I found the skit_learn accuracy_score function, but I didn’t understand that
accuracy_score ( y_true ,  y_pred)
y_true: “will be the output from the model”
y_pred: " will be the images from the DataLoader"
Please, correct if I am wrong
for epoch in range(Epochs):
for data in trainloader:
image,_ = data
o_image = train_model(image)
loss = criterion(o_image, image)
loss.backward()
optimizer.step()
optimizer.zero_grad()
print(‘Epoch:{}, Loss:{:.4f}’.format(epoch+1, float(loss)))
This is my training code.