4b95bca28b0a924aa2e0bfd40eb088c40a8fe7dd,infcomp/compile.py,,,#,27

Before Change



        prev_artifact_total_traces = 0
        prev_artifact_total_iterations = 0
        prev_artifact_total_training_time = datetime.timedelta(0)

        artifact = Artifact()
        artifact.on_cuda = opt.cuda
        artifact.standardize = opt.standardize

After Change


                        artifact_file = "{0}/{1}".format(opt.dir, "compile-artifact" + time_stamp)
                    torch.save(artifact, artifact_file)

                    improvement_time = time.time()
                elif valid_loss > artifact.valid_loss_worst:
                    artifact.valid_loss_worst = valid_loss
                    valid_loss_str = colored("{:+.6e} ▲".format(valid_loss), "red", attrs=["bold"])
                elif valid_loss < artifact.valid_history_loss[-1]:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pyprob/pyprob
Commit Name: 4b95bca28b0a924aa2e0bfd40eb088c40a8fe7dd
Time: 2017-04-26
Author: atilimgunes.baydin@gmail.com
File Name: infcomp/compile.py
Class Name:
Method Name:


Project Name: sahana/eden
Commit Name: 1b3b4d1c85404abe255336a5569e23f474dfb8ab
Time: 2019-04-18
Author: dominic@nursix.org
File Name: modules/s3/s3datetime.py
Class Name: S3DateTime
Method Name: to_utc


Project Name: quiltdata/quilt
Commit Name: 76035428fd0675acea658d1ede3f724435272a15
Time: 2018-02-14
Author: meffij@users.noreply.github.com
File Name: registry/tests/admin_test.py
Class Name: AdminTestCase
Method Name: testAdminPackageUserUI