7cdd969aeb3af048b1573f4dac1d0a672ef4576b,anago/train.py,,main,#,17

Before Change


    lstm_dim = 100
    batch_size = 64

    max_features = len(word_to_id)
    nb_chunk_tags = len(entity_to_id)

    X_train = sequence.pad_sequences(train_data["X"], maxlen=maxlen, padding="post")
    X_test = sequence.pad_sequences(test_data["X"], maxlen=maxlen, padding="post")

After Change



    if args.save_path:
        print("Saving model to {}.".format(args.save_path))
        model.save(args.save_path)


if __name__ == "__main__":
    main()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: Hironsan/anago
Commit Name: 7cdd969aeb3af048b1573f4dac1d0a672ef4576b
Time: 2017-07-23
Author: light.tree.1.13@gmail.com
File Name: anago/train.py
Class Name:
Method Name: main


Project Name: PavlosMelissinos/enet-keras
Commit Name: fd5fdd2507cb26d746324ae7bfd6c280580dd5e6
Time: 2017-05-04
Author: pmelissi@iti.gr
File Name: src/predict.py
Class Name:
Method Name:


Project Name: SINGROUP/dscribe
Commit Name: d499be2bb6a6e2bd1723888caaee314b690efd98
Time: 2020-10-30
Author: lauri.himanen@gmail.com
File Name: examples/forces/generator.py
Class Name:
Method Name:


Project Name: Hironsan/anago
Commit Name: 6727dca0985fbc6874c985e94471081f5e9c9bec
Time: 2017-08-30
Author: light.tree.1.13@gmail.com
File Name: anago/trainer.py
Class Name: Trainer
Method Name: train