update dllib-mlflow.py
This commit is contained in:
parent
5f9785d4fd
commit
c2a7fbbf25
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user