9ca6207717ecea8f31fda05109b5291207a8dffe,parlai/scripts/train_model.py,TrainLoop,_nice_format,#TrainLoop#Any#,344
Before Change
return finalized
def _nice_format(self, dictionary):
return {k: round_sigfigs(v, 4) for k, v in dictionary.items()}
def _compute_eta(self, epochs_completed, time_elapsed):
Computes the estimated seconds remaining in training.
After Change
return self._average_dicts(all_versions)
def _nice_format(self, dictionary):
rounded = {}
for k, v in dictionary.items():
if isinstance(v, dict):
rounded[k] = self._nice_format(v)
elif isinstance(v, float):
rounded[k] = round_sigfigs(v, 4)
else:
rounded[k] = v
return rounded
def _compute_eta(self, epochs_completed, time_elapsed):
Computes the estimated seconds remaining in training.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 14
Instances
Project Name: facebookresearch/ParlAI
Commit Name: 9ca6207717ecea8f31fda05109b5291207a8dffe
Time: 2019-01-16
Author: roller@fb.com
File Name: parlai/scripts/train_model.py
Class Name: TrainLoop
Method Name: _nice_format
Project Name: allenai/allennlp
Commit Name: 02d5ddeef16a767bc77f9845bccc9ad4c47ad239
Time: 2020-03-17
Author: wuzhaofeng1997@gmail.com
File Name: allennlp/data/token_indexers/pretrained_transformer_indexer.py
Class Name: PretrainedTransformerIndexer
Method Name: as_padded_tensor_dict
Project Name: jsalt18-sentence-repl/jiant
Commit Name: 7c3c41e93c1ad3dacbc2cbbaab9942a8d96c37bc
Time: 2020-09-29
Author: email@jasonphang.com
File Name: jiant/utils/torch_utils.py
Class Name:
Method Name: copy_state_dict
Project Name: facebookresearch/ParlAI
Commit Name: 9ca6207717ecea8f31fda05109b5291207a8dffe
Time: 2019-01-16
Author: roller@fb.com
File Name: parlai/scripts/train_model.py
Class Name: TrainLoop
Method Name: _nice_format