0b2fd0f6ac45feda4eb2ccd92cc7b15b279a448a,onmt/Models.py,Embeddings,__init__,#Embeddings#Any#Any#Any#,14

Before Change


                // When concatenating, derive the size of each feature"s
                // embedding from the number of values the embedding
                // takes
                feat_sizes = (int(feat_dict.size() ** feat_exp)
                              for feat_dict in feature_dicts)
            else:
                // sum feature merge (for now, the same as the old option
                // for merging features in OpenNMT-py)
                feat_sizes = (opt.feat_vec_size for feat_dict in feature_dicts)

After Change


                emb_sizes.extend([opt.word_vec_size] * len(feature_dicts))
            else:
                // mlp feature merge
                emb_sizes.extend([opt.feat_vec_size] * len(feature_dicts))
                // apply a layer of mlp to get it down to the correct dim
                self.mlp = nn.Sequential(onmt.modules.BottleLinear(
                                        sum(emb_sizes),
                                        opt.word_vec_size),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: OpenNMT/OpenNMT-py
Commit Name: 0b2fd0f6ac45feda4eb2ccd92cc7b15b279a448a
Time: 2017-08-10
Author: benzurdopeters@gmail.com
File Name: onmt/Models.py
Class Name: Embeddings
Method Name: __init__


Project Name: keras-team/keras
Commit Name: 08f6bdeb5652550f36210f64aefda3d0d41e2d79
Time: 2019-05-28
Author: tanzheny@google.com
File Name: keras/optimizers.py
Class Name: Adam
Method Name: get_updates


Project Name: Hironsan/anago
Commit Name: ae46f6e2086e76b566ad23fd6099e84d96a3575f
Time: 2018-03-03
Author: hiroki.nakayama.py@gmail.com
File Name: anago/callbacks.py
Class Name: F1score
Method Name: on_epoch_end