Skip to content

Commit

Permalink
Update train_classifier_mixup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vikasverma1077 committed Dec 11, 2018
1 parent 9c83768 commit 76a6d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supervised/train_classifier_mixup.py
Expand Up @@ -150,7 +150,7 @@ def mixup_criterion(y_a, y_b, lam):

criterion = torch.nn.CrossEntropyLoss()
mse_loss = nn.MSELoss()
optimizer = torch.optim.SGD(C.parameters(), lr=0.001, momentum=0.9, weight_decay=args.weight_decay, nesterov=args.nesterov)
optimizer = torch.optim.SGD(C.parameters(), lr=args.learning_rate, momentum=args.momentum, weight_decay=args.weight_decay, nesterov=args.nesterov)

train_loss_list = []
train_acc_list = []
Expand Down

0 comments on commit 76a6d74

Please sign in to comment.