cf1c64a5f7cffe7a362cc772752f8f226fb04f22,train.py,,validate,#Any#Any#Any#Any#Any#Any#,204

Before Change


        stats["num_updates"] = num_updates

    if hasattr(save_checkpoint, "best"):
        stats["best"] = min(save_checkpoint.best, stats["valid_loss"])

    progress.print(stats)

    return stats["valid_loss"]

After Change


        log_output = trainer.valid_step(sample)

        for k, v in log_output.items():
            if k in ["loss", "nll_loss", "sample_size"]:
                continue
            extra_meters[k].update(v)

    // log validation stats
    stats = get_valid_stats(trainer)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: elbayadm/attn2d
Commit Name: cf1c64a5f7cffe7a362cc772752f8f226fb04f22
Time: 2018-06-15
Author: myleott@fb.com
File Name: train.py
Class Name:
Method Name: validate


Project Name: flow-project/flow
Commit Name: 6971ce645c4aa0c71e5c0775bd4192b3b312cbcb
Time: 2018-04-01
Author: kanaadp@gmail.com
File Name: flow/controllers/velocity_controllers.py
Class Name: FollowerStopper
Method Name: get_accel


Project Name: pytorch/fairseq
Commit Name: cf1c64a5f7cffe7a362cc772752f8f226fb04f22
Time: 2018-06-15
Author: myleott@fb.com
File Name: train.py
Class Name:
Method Name: validate