We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cba6ed0 commit 3ad009fCopy full SHA for 3ad009f
CIFAR10_code/train.py
@@ -27,7 +27,7 @@
27
parser.add_argument('--epochs', type = int, default=20, help = 'Epochs')
28
parser.add_argument('--resume', '-r', action='store_true', help='resume from checkpoint')
29
parser.add_argument('--patience', '-p', type = int, default=7, help='patience for Early stop')
30
- parser.add_argument('--optim','-o',type = str, choices = ['sgd','adam','adamw'],help = 'choose optimizer')
+ parser.add_argument('--optim','-o',type = str, choices = ['sgd','adam','adamw'], default = 'adamw', help = 'choose optimizer')
31
32
args = parser.parse_args()
33
0 commit comments