e2239ff7bb6234e409bf3676acb45b74d8c34e9d,15-vae/vae-lm.py,,,#,206

Before Change


        math.exp(dev_loss / dev_words), time.time() - start))

// this is how you generate, can replace with desired sentenced to generate
sentences = []
for sent_id, sent in enumerate(test):
    translated_sent = generate(sent[0])
    sentences.append(translated_sent)
for sent in sentences:

After Change



        dev_kl_loss += kl_loss.value()
        dev_reconstruct_loss += softmax_loss.value()
        dev_loss += kl_loss.value() + softmax_loss.value()

        dev_words += len(sent)
        trainer.update()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: neubig/nn4nlp-code
Commit Name: e2239ff7bb6234e409bf3676acb45b74d8c34e9d
Time: 2017-10-16
Author: hunterhector@gmail.com
File Name: 15-vae/vae-lm.py
Class Name:
Method Name:


Project Name: ilastik/ilastik
Commit Name: faa13436e13076bd54fcb9590e49d77c696b9d50
Time: 2016-11-29
Author: janez.ales@iwr.uni-heidelberg.de
File Name: ilastik/applets/tracking/structured/structuredTrackingGui.py
Class Name: StructuredTrackingGui
Method Name: _onRunStructuredLearningButtonPressed


Project Name: CellProfiler/CellProfiler
Commit Name: a0bb548da9fde1e6fd3c949608fd007fd37a3ee9
Time: 2009-10-15
Author: klmadden@1fc53939-2000-0410-845c-e8453a809027
File Name: pyCellProfiler/cellprofiler/modules/measureimageareaoccupied.py
Class Name: MeasureImageAreaOccupied
Method Name: get_measurement_columns