epochs = 20 for epoch in range(0, epochs + 1): # Training if epoch > 0: # test untrained net first model.train() train_loss = 0