Zaktualizuj 'train-mlflow.py'

This commit is contained in:
Kornelia Girejko 2022-05-15 13:06:50 +02:00
parent 7c45c9b09b
commit 9626387f5d

View File

@ -75,7 +75,7 @@ model = Model()
criterion = nn.BCELoss()
optimizer = torch.optim.SGD(model.parameters(), lr=0.01)
epochs = EPOCHS
epochs = int(sys.argv[1]) if len(sys.argv) > 1 else 20
def my_main(epochs):
# Trening