Zaktualizuj 'biblioteka_DL'

This commit is contained in:
Kornelia Girejko 2022-05-06 19:21:59 +02:00
parent a1429eea6e
commit aff6e0827b

View File

@ -73,4 +73,6 @@ with torch.no_grad():
acc = y_predicted_cls.eq(y_testing).sum()/float(y_testing.shape[0]) acc = y_predicted_cls.eq(y_testing).sum()/float(y_testing.shape[0])
print(f'{acc:.4f}') print(f'{acc:.4f}')
result = open("output",'w+') result = open("output",'w+')
result.write(f'{y_predicted}') result.write(f'{y_predicted}')
torch.save(model, "model.pkl")