Zaktualizuj 'ml_pytroch_sacred.py'
This commit is contained in:
parent
d425c6b0ee
commit
391c7e5d59
@ -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")
|
Loading…
Reference in New Issue
Block a user