5f465041619a63bf1de99c55d1298865bf70fd9e,embed.py,,async_eval,#Any#Any#Any#Any#,38

Before Change


            "epoch": epoch,
            "elapsed": elapsed,
            "loss": loss,
            "sqnorm_min": sqnorms.min().item(),
            "sqnorm_avg": sqnorms.mean().item(),
            "sqnorm_max": sqnorms.max().item(),
            "mean_rank": meanrank,

After Change


        epoch, elapsed, loss, pth = temp
        if opt.eval == "reconstruction":
            lmsg = reconstruction_eval(adj, opt, epoch, elapsed, loss, pth, best)
        elif opt.eval == "hypernymy":
            lmsg = hypernymy_eval(epoch, elapsed, loss, pth, best)
        else:
            raise ValueError(f"Unrecognized evaluation: {opt.eval}")
        best = lmsg if lmsg["best"] else best
        logQ.put((lmsg, pth))

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: facebookresearch/poincare-embeddings
Commit Name: 5f465041619a63bf1de99c55d1298865bf70fd9e
Time: 2020-01-07
Author: mattle@fb.com
File Name: embed.py
Class Name:
Method Name: async_eval


Project Name: senarvi/theanolm
Commit Name: bcf723a2f67a372e6b03a453149a82ecf2766fff
Time: 2015-12-24
Author: seppo.git@marjaniemi.com
File Name: theanolm/iterators.py
Class Name: ShufflingBatchIterator
Method Name: set_state


Project Name: senarvi/theanolm
Commit Name: 5ad1bd651f39457efcebe6be251204a4cc8f07e8
Time: 2015-11-28
Author: seppo.git@marjaniemi.com
File Name: theanolm/network.py
Class Name: Architecture
Method Name: from_state


Project Name: allenai/allennlp
Commit Name: 87a61ad92a9e0129e5c81c242f0ea96d77e6b0af
Time: 2020-08-19
Author: akshita23bhagia@gmail.com
File Name: allennlp/training/metrics/pearson_correlation.py
Class Name: PearsonCorrelation
Method Name: get_metric