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-11 15:25:58 +02:00
parent 777e10f0ef
commit f8af56e2ca

View File

@ -310,7 +310,7 @@ def my_main(epochs):
loss.backward() # Gradients
optimizer.step() # Update
mlflow.log_param("loss", loss.item)
mlflow.log_param("loss", loss.item())
# Prediction
x_test = Variable(torch.from_numpy(features_test_g)).float()