cd6ea74225b7c29238de13229aa1347db4098fea,train_model.py,,main,#,37

Before Change


            logger.info("model saved to: {:s}".format(path_model))
            logger.info("elapsed time: {:.1f} s".format(time.time() - time_start))
        df_losses = df_losses_curr
    logger.info("total training time: {:.1f} s".format(time.time() - time_start))

if __name__ == "__main__":
    main()

After Change


        if ((i + 1) % opts.iter_checkpoint == 0) or ((i + 1) == opts.n_iter):
            model.save_state(path_model)
            fnetlogger.to_csv(path_losses_csv)
            logger.info("loss log saved to: {:s}".format(path_losses_csv))
            logger.info("model saved to: {:s}".format(path_model))
            logger.info("elapsed time: {:.1f} s".format(time.time() - time_start))
    
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


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


Project Name: ray-project/ray
Commit Name: 92664249e82483598a0a22dc0d2bd6f85a143c60
Time: 2020-08-20
Author: rkooo567@gmail.com
File Name: python/ray/util/sgd/torch/examples/transformers/transformers_example.py
Class Name:
Method Name: data_creator


Project Name: NifTK/NiftyNet
Commit Name: cd90b064de4b8d24e9419b3458c83626db356be7
Time: 2017-11-14
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/application_driver.py
Class Name: ApplicationDriver
Method Name: _inference_loop


Project Name: lufficc/SSD
Commit Name: b65560304dc61e63fa45e5a26fee930661c6e998
Time: 2019-06-23
Author: luffy.lcc@gmail.com
File Name: ssd/engine/trainer.py
Class Name:
Method Name: do_train