update dllib-mlflow.py
All checks were successful
s444356-evaluation/pipeline/head This commit looks good
s444356-training/pipeline/head This commit looks good

This commit is contained in:
Maciej Czajka 2022-05-09 22:25:23 +02:00
parent 5f9785d4fd
commit c2a7fbbf25

View File

@ -296,7 +296,7 @@ def my_main(epochs):
print ("The loss calculated: ", loss) print ("The loss calculated: ", loss)
# Not using dataloader with mlflow.start_run() as run:
x_train, y_train = Variable(torch.from_numpy(features_train_g)).float(), Variable(torch.from_numpy(labels_train_g)).long() x_train, y_train = Variable(torch.from_numpy(features_train_g)).float(), Variable(torch.from_numpy(labels_train_g)).long()
for epoch in range(1, epochs + 1): for epoch in range(1, epochs + 1):
print("Epoch #", epoch) print("Epoch #", epoch)