fc8f1b18e872b853182a31d2f3d2beeb5a6af7c0,python/baseline/pytorch/classify/train.py,,fit,#Any#Any#Any#Any#,105

Before Change


        logger.info("Reloading best checkpoint")
        model = torch.load(model_file)
        trainer = create_trainer(model, **kwargs)
        trainer.test(es, reporting_fns, phase="Test", verbose=verbose)

After Change


        logger.info("Reloading best checkpoint")
        model = torch.load(model_file)
        trainer = create_trainer(model, **kwargs)
        test_metrics = trainer.test(es, reporting_fns, phase="Test", verbose=verbose)
    return test_metrics
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 10

Non-data size: 4

Instances


Project Name: dpressel/mead-baseline
Commit Name: fc8f1b18e872b853182a31d2f3d2beeb5a6af7c0
Time: 2019-03-22
Author: blester125@users.noreply.github.com
File Name: python/baseline/pytorch/classify/train.py
Class Name:
Method Name: fit


Project Name: dpressel/mead-baseline
Commit Name: fc8f1b18e872b853182a31d2f3d2beeb5a6af7c0
Time: 2019-03-22
Author: blester125@users.noreply.github.com
File Name: python/baseline/tf/classify/train.py
Class Name:
Method Name: fit


Project Name: dpressel/mead-baseline
Commit Name: fc8f1b18e872b853182a31d2f3d2beeb5a6af7c0
Time: 2019-03-22
Author: blester125@users.noreply.github.com
File Name: python/baseline/pytorch/tagger/train.py
Class Name:
Method Name: fit


Project Name: dpressel/mead-baseline
Commit Name: fc8f1b18e872b853182a31d2f3d2beeb5a6af7c0
Time: 2019-03-22
Author: blester125@users.noreply.github.com
File Name: python/baseline/pytorch/seq2seq/train.py
Class Name:
Method Name: fit


Project Name: dpressel/mead-baseline
Commit Name: fc8f1b18e872b853182a31d2f3d2beeb5a6af7c0
Time: 2019-03-22
Author: blester125@users.noreply.github.com
File Name: python/baseline/dy/seq2seq/train.py
Class Name:
Method Name: fit


Project Name: dpressel/mead-baseline
Commit Name: fc8f1b18e872b853182a31d2f3d2beeb5a6af7c0
Time: 2019-03-22
Author: blester125@users.noreply.github.com
File Name: python/baseline/tf/lm/train.py
Class Name:
Method Name: fit


Project Name: dpressel/mead-baseline
Commit Name: fc8f1b18e872b853182a31d2f3d2beeb5a6af7c0
Time: 2019-03-22
Author: blester125@users.noreply.github.com
File Name: python/baseline/dy/classify/train.py
Class Name:
Method Name: fit


Project Name: dpressel/mead-baseline
Commit Name: fc8f1b18e872b853182a31d2f3d2beeb5a6af7c0
Time: 2019-03-22
Author: blester125@users.noreply.github.com
File Name: python/baseline/tf/seq2seq/train.py
Class Name:
Method Name: fit


Project Name: dpressel/mead-baseline
Commit Name: fc8f1b18e872b853182a31d2f3d2beeb5a6af7c0
Time: 2019-03-22
Author: blester125@users.noreply.github.com
File Name: python/baseline/pytorch/lm/train.py
Class Name:
Method Name: fit


Project Name: dpressel/mead-baseline
Commit Name: fc8f1b18e872b853182a31d2f3d2beeb5a6af7c0
Time: 2019-03-22
Author: blester125@users.noreply.github.com
File Name: python/baseline/dy/lm/train.py
Class Name:
Method Name: fit