Zaktualizuj 'ml_pytroch_sacred.py'

This commit is contained in:
Sebastian Wałęsa 2022-05-08 19:32:54 +02:00
parent d425c6b0ee
commit 391c7e5d59

View File

@ -122,4 +122,6 @@ def my_main(epochs):
with open("result.txt", "w+") as file: with open("result.txt", "w+") as file:
for i in range(0, len(val_ds), 1): for i in range(0, len(val_ds), 1):
input_, target = val_ds[i] input_, target = val_ds[i]
file.write(str(predict_single(input_, target, model))) file.write(str(predict_single(input_, target, model)))
torch.save(model, "Model_xPosition.pkl")