04046533b7a87572e730405bb1e11a076e7ed3d0,examples/text-pair/glove_mwe_multipool_predict.py,,main,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,96

Before Change


            // a computational graph. We just use closures.
            backprop(yh-y, optimizer)

            epoch_train_acc += (yh.argmax(axis=1) == y.argmax(axis=1)).sum()

            // Slightly useful trick: start with low batch size, accelerate.
            trainer.batch_size = min(int(batch_size), max_batch_size)
            batch_size *= 1.001

After Change


    // * concatenate (|): Merge the outputs of two models into a single vector,
    // i.e. (f|g)(x) -> hstack(f(x), g(x))
    with Model.define_operators({">>": chain, "**": clone, "|": concatenate,
                                 "+": add}):
        // Important trick: text isn"t like images, and the best way to use
        // convolution is different. Don"t use pooling-over-time. Instead,
        // use the window to compute one vector per word, and do this N deep.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: explosion/thinc
Commit Name: 04046533b7a87572e730405bb1e11a076e7ed3d0
Time: 2017-02-21
Author: honnibal+gh@gmail.com
File Name: examples/text-pair/glove_mwe_multipool_predict.py
Class Name:
Method Name: main


Project Name: NVIDIA/sentiment-discovery
Commit Name: 81658f79c135ce6e04d89a0055d7090d5efea80e
Time: 2018-08-10
Author: raulp@dbcluster.nvidia.com
File Name: fp16/loss_scaler.py
Class Name: DynamicLossScaler
Method Name: _has_inf_or_nan


Project Name: catalyst-cooperative/pudl
Commit Name: 14ca7ff44991ca22c188cb7e583e0664682deaf1
Time: 2018-01-15
Author: zane.selvans@catalyst.coop
File Name: pudl/outputs.py
Class Name:
Method Name: generation_eia923