111a3673fdec28a1bc768659577f47cad2753ec6,scripts/sentiment_analysis/sentiment_analysis_cnn.py,,,#,43

Before Change


                    help="dropout applied to layers (0 = no dropout)")
parser.add_argument("--log-interval", type=int, default=30, metavar="N",
                    help="report interval")
parser.add_argument("--save-prefix", type=str, default="sa-model",
                    help="path to save the final model")
parser.add_argument("--gpu", type=int, default=None,
                    help="id of the gpu to use. Set it to empty means to use cpu.")
args = parser.parse_args()
print(args)

After Change


    print("Use gpu%d" % args.gpu)
    context = mx.gpu(args.gpu)

if args.data_name in ("MR", "Subj", "CR", "MPQA"):
    vocab, max_len, output_size, train_dataset, train_data_lengths \
    = process_data.load_dataset(args.data_name)
elif args.data_name == "TREC":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: dmlc/gluon-nlp
Commit Name: 111a3673fdec28a1bc768659577f47cad2753ec6
Time: 2019-05-16
Author: chenmengya11@post.eurasia.edu
File Name: scripts/sentiment_analysis/sentiment_analysis_cnn.py
Class Name:
Method Name:


Project Name: ray-project/ray
Commit Name: 841d93d366b1465959dba03512d64513c5ff568f
Time: 2020-11-25
Author: sven@anyscale.io
File Name: rllib/examples/multi_agent_cartpole.py
Class Name:
Method Name:


Project Name: dmlc/gluon-nlp
Commit Name: 111a3673fdec28a1bc768659577f47cad2753ec6
Time: 2019-05-16
Author: chenmengya11@post.eurasia.edu
File Name: scripts/sentiment_analysis/sentiment_analysis_cnn.py
Class Name:
Method Name:


Project Name: ray-project/ray
Commit Name: 54d85a6c2a765fde77948b475db79f905a8618b6
Time: 2020-11-02
Author: sven@anyscale.io
File Name: rllib/examples/cartpole_lstm.py
Class Name:
Method Name: