9e94aa28133b75152f90b2b63f30c17b377c9748,train.py,,main,#,16

Before Change


            // save a dump of all sentences and the encoded latent space
            if split == "valid":
                dump = {"target_sents":tracker["target_sents"], "z":tracker["z"].tolist()}
                os.makedirs("dumps/"+ts)
                with open(os.path.join("dumps/"+ts+"/valid_E%i.json"%epoch), "w") as dump_file:
                    json.dump(dump,dump_file)

            // save checkpoint

After Change


            // save a dump of all sentences and the encoded latent space
            if split == "valid":
                dump = {"target_sents":tracker["target_sents"], "z":tracker["z"].tolist()}
                if not os.path.exists(os.path.join("dumps", ts)):
                    os.makedirs("dumps/"+ts)
                with open(os.path.join("dumps/"+ts+"/valid_E%i.json"%epoch), "w") as dump_file:
                    json.dump(dump,dump_file)

            // save checkpoint
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: timbmg/Sentence-VAE
Commit Name: 9e94aa28133b75152f90b2b63f30c17b377c9748
Time: 2018-03-08
Author: baumgaertner.t@gmail.com
File Name: train.py
Class Name:
Method Name: main


Project Name: floodsung/Deep-Learning-Papers-Reading-Roadmap
Commit Name: 1ef2808c90ce7f904400f10716db3feb14fafe31
Time: 2017-01-03
Author: jun.yang@transwarp.io
File Name: download.py
Class Name:
Method Name:


Project Name: daavoo/pyntcloud
Commit Name: 4737b92f63170d4d27a1335908995827a501c1df
Time: 2017-05-08
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/learn/datasets/modelnet.py
Class Name:
Method Name: get_and_setup_modelnet


Project Name: HDI-Project/ATM
Commit Name: afbd9676c06dd1ae08ecef339b66b2d023a31216
Time: 2019-04-02
Author: carles@pythiac.com
File Name: atm/cli.py
Class Name:
Method Name: _make_config