5155199f5df2129d10bc52ceffce5d7720538806,labs/09/lemmatizer_attn.py,,,#,225

Before Change


    parser.add_argument("--recodex", default=False, action="store_true", help="Evaluation in ReCodEx.")
    parser.add_argument("--rnn_dim", default=64, type=int, help="RNN cell dimension.")
    parser.add_argument("--threads", default=1, type=int, help="Maximum number of threads to use.")
    args = parser.parse_args()

    // Fix random seeds and number of threads
    np.random.seed(42)
    tf.random.set_seed(42)

After Change



if __name__ == "__main__":
    // Parse arguments
    parser = argparse.ArgumentParser()
    parser.add_argument("--batch_size", default=10, type=int, help="Batch size.")
    parser.add_argument("--cle_dim", default=64, type=int, help="CLE embedding dimension.")
    parser.add_argument("--epochs", default=10, type=int, help="Number of epochs.")
    parser.add_argument("--max_sentences", default=5000, type=int, help="Maximum number of sentences to load.")
    parser.add_argument("--recodex", default=False, action="store_true", help="Evaluation in ReCodEx.")
    parser.add_argument("--rnn_dim", default=64, type=int, help="RNN cell dimension.")
    parser.add_argument("--seed", default=42, type=int, help="Random seed.")
    parser.add_argument("--threads", default=1, type=int, help="Maximum number of threads to use.")
    parser.add_argument("--verbose", default=False, action="store_true", help="Verbose TF logging.")
    args = parser.parse_args([] if "__file__" not in globals() else None)

    // Fix random seeds and threads
    np.random.seed(args.seed)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 13

Instances


Project Name: ufal/npfl114
Commit Name: 5155199f5df2129d10bc52ceffce5d7720538806
Time: 2020-04-29
Author: milan@strakovi.com
File Name: labs/09/lemmatizer_attn.py
Class Name:
Method Name:


Project Name: yahoo/TensorFlowOnSpark
Commit Name: 981e4266d4ea816b08a762193bd52f40cd1a3242
Time: 2019-08-07
Author: leewyang@verizonmedia.com
File Name: examples/mnist/mnist_data_setup.py
Class Name:
Method Name:


Project Name: ufal/npfl114
Commit Name: 5155199f5df2129d10bc52ceffce5d7720538806
Time: 2020-04-29
Author: milan@strakovi.com
File Name: labs/09/lemmatizer_noattn.py
Class Name:
Method Name:


Project Name: ufal/npfl114
Commit Name: 5155199f5df2129d10bc52ceffce5d7720538806
Time: 2020-04-29
Author: milan@strakovi.com
File Name: labs/09/lemmatizer_attn.py
Class Name:
Method Name: