7681e0305184eaf164069485003ab8c6e3e5e155,scripts/bert/finetune_classifier.py,,,#,48

Before Change



metric = mx.metric.Accuracy()

trans = ClassificationTransform(tokenizer, MRPCDataset.get_labels(), args.max_len)
data_train = MRPCDataset("train").transform(trans)
data_dev = MRPCDataset("dev").transform(trans)

bert_dataloader = mx.gluon.data.DataLoader(data_train, batch_size=batch_size,

After Change


dev_batch_size = args.dev_batch_size
lr = args.lr
accumulate = args.accumulate
log_interval = args.log_interval * accumulate if accumulate else args.log_interval
if accumulate:
    logging.info("Using gradient accumulation. Effective batch size = %d"%(accumulate*batch_size))

// random seed
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: dmlc/gluon-nlp
Commit Name: 7681e0305184eaf164069485003ab8c6e3e5e155
Time: 2018-12-29
Author: linhaibin.eric@gmail.com
File Name: scripts/bert/finetune_classifier.py
Class Name:
Method Name:


Project Name: pgmpy/pgmpy
Commit Name: 967bf4dbc1353e05dcecfc24c78d9c31b7b50bb8
Time: 2016-05-31
Author: yashuseth2503@gmail.com
File Name: pgmpy/continuous/discretize/unbiased.py
Class Name: UnbiasedDiscretizer
Method Name: get_labels


Project Name: ysig/GraKeL
Commit Name: 1dc5cec3d5aab66576d18f8a9b8090d8b876e0e1
Time: 2018-02-01
Author: y.siglidis@gmail.com
File Name: grakel/kernels/pyramid_match.py
Class Name: pyramid_match
Method Name: parse_input


Project Name: oarriaga/face_classification
Commit Name: a454cffc09018367b17d1d3a220cea2652eb51c7
Time: 2017-07-06
Author: arriaga.camargo@gmail.com
File Name: src/video_gradcam_demo.py
Class Name:
Method Name: