3abe8e680e1f8000dbc6bf2c7aa11bd53e513368,train_model.py,,main,#,17

Before Change


        npatches = max(0, (opts.n_iter - model.count_iter)*opts.batch_size),
        verbose = True,
    )
    dataloader_train = torch.utils.data.DataLoader(
        ds_patch,
        batch_size = opts.batch_size,
    )

    dataloader_test = None
    if opts.checkpoint_testing:
        raise NotImplementedError

After Change


        df_losses = pd.read_csv(path_losses_csv)
        logger.info("History loaded from: {:s}".format(path_losses_csv))

    opts.__dict__["npatches"] = max(0, (opts.n_iter - model.count_iter)*opts.batch_size)
    dataloader_train = get_dataloader(opts)
    dataloader_test = None
    
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: AllenCellModeling/pytorch_fnet
Commit Name: 3abe8e680e1f8000dbc6bf2c7aa11bd53e513368
Time: 2018-01-18
Author: chek.o@outlook.com
File Name: train_model.py
Class Name:
Method Name: main


Project Name: ncullen93/torchsample
Commit Name: f210fee0f23d91273ed0b55ffa99e57284930ec0
Time: 2017-04-27
Author: ncullen@modv-vlan533.0919.apn.wlan.wireless-pennnet.upenn.edu
File Name: torchsample/modules/super_module.py
Class Name: SuperModule
Method Name: predict


Project Name: Scitator/catalyst
Commit Name: 2dd8e2e5cbfbd682759f553256241fcefc7e5ca0
Time: 2019-03-20
Author: scitator@gmail.com
File Name: catalyst/dl/experiments/experiment.py
Class Name: ConfigExperiment
Method Name: get_loaders