fix3
This commit is contained in:
parent
9bf4690f35
commit
c66bcd324e
3
test.py
3
test.py
@ -52,7 +52,7 @@ def testNet(testloader):
|
||||
total += labels.size(0)
|
||||
correct += (predicted == labels).sum().item()
|
||||
|
||||
print(f'Accuracy of the network: {100 * correct // total} %')
|
||||
#print(f'Accuracy of the network: {100 * correct // total} %')
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
@ -79,5 +79,6 @@ if __name__ == '__main__':
|
||||
for item in testdata:
|
||||
for i in range(len(item)):
|
||||
the_file.write(f'data: {item[0][i]} \n true value: {item[1][i]} \n prediction: {item[2][i]}\n')
|
||||
print(f'data: {item[0][i]} \n true value: {item[1][i]} \n prediction: {item[2][i]}\n')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user