812ddc9595195887b7574512bd1021743354b064,examples/text_classification/train.py,,train_and_valid,#Any#Any#Any#Any#,54
Before Change
loss.backward()
optimizer.step()
processed_lines = i + len(data) * epoch
progress = processed_lines / float(num_lines)
if processed_lines % 1024:
sys.stderr.write(
"\rProgress: {:3.0f}% lr: {:3.3f} loss: {:3.3f}".format(
progress * 100, scheduler.get_lr()[0], loss))
After Change
optimizer.step()
processed_lines = i + len(train_data) * epoch
progress = processed_lines / float(num_lines)
if processed_lines % 128 == 0:
sys.stderr.write(
"\rProgress: {:3.0f}% lr: {:3.3f} loss: {:3.3f}".format(
progress * 100, scheduler.get_lr()[0], loss))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: pytorch/text
Commit Name: 812ddc9595195887b7574512bd1021743354b064
Time: 2019-08-02
Author: 6156351+zhangguanheng66@users.noreply.github.com
File Name: examples/text_classification/train.py
Class Name:
Method Name: train_and_valid
Project Name: allenai/allennlp
Commit Name: 8ba58675175e91d306f55380833458acfcb38cdd
Time: 2018-05-10
Author: pradeep.dasigi@gmail.com
File Name: allennlp/models/semantic_parsing/nlvr/nlvr_decoder_step.py
Class Name: NlvrDecoderStep
Method Name: _get_next_state_info_with_agenda
Project Name: emedvedev/attention-ocr
Commit Name: 4bb608662475ecf87dc773a6a1c6914a6c374597
Time: 2017-01-10
Author: sivanke11@gmail.com
File Name: src/model/model.py
Class Name: Model
Method Name: launch