36b018daf15ae8af90cf982fd01bff2008ced3bd,examples/experimental/simple_cifar.py,,,#,99

Before Change


    epochs=5,
    loaders=get_loaders(),
    criterion=CrossEntropyLoss(),
    optimizer=Adam(model.parameters(), lr=0.001),
    scheduler=None,
    callbacks=OrderedDict(
        tqdm=VerboseCallback(),

After Change



model = SimpleNet()
criterion = nn.CrossEntropyLoss()
optimizer = torch.optim.Adam(model.parameters(), lr=0.005)
scheduler = torch.optim.lr_scheduler.MultiStepLR(
    optimizer,
    milestones=[2, 3],
    gamma=0.2)
runner = SupervisedRunner(model=model, input_key="image")

// training
runner.train(
    logdir="./logs/01",
    epochs=5,
    loaders=get_loaders(),
    criterion=criterion,
    optimizer=optimizer,
    scheduler=scheduler,
    callbacks=OrderedDict(
        tqdm=VerboseCallback(),
        loss=LossCallback(),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: Scitator/catalyst
Commit Name: 36b018daf15ae8af90cf982fd01bff2008ced3bd
Time: 2019-02-25
Author: scitator@gmail.com
File Name: examples/experimental/simple_cifar.py
Class Name:
Method Name:


Project Name: deepgram/kur
Commit Name: 45406badf091b037f871a1efae3fbdd663b9cef7
Time: 2017-01-18
Author: ajsyp@syptech.net
File Name: kur/optimizer/adam.py
Class Name: Adam
Method Name: get_optimizer


Project Name: ray-project/ray
Commit Name: 59bc1e6c093fb6fa3b55c5830c5cf4063b2647e0
Time: 2020-11-12
Author: michael.luo123456789@gmail.com
File Name: rllib/agents/maml/maml_torch_policy.py
Class Name:
Method Name: maml_optimizer_fn