028405190df7a8798b821d1fb1c28cb62f54d7d9,parlai/agents/drqa/agents.py,DocReaderAgent,__init__,#DocReaderAgent#Any#Any#Any#,108
Before Change
self.dict = word_dict
self.feature_dict = build_feature_dict(self.opt)
self.opt["vocab_size"] = len(self.dict)
self.opt["num_features"] = len(self.feature_dict)
// Intialize model
logger.info("[ Initializing DocReaderModel ]")
After Change
else:
self._init_from_scratch()
if self.opt["cuda"]:
self.model.cuda()
self.n_examples = 0
def _init_from_scratch(self):
self.feature_dict = build_feature_dict(self.opt)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: facebookresearch/ParlAI
Commit Name: 028405190df7a8798b821d1fb1c28cb62f54d7d9
Time: 2017-05-12
Author: adamfisch15@gmail.com
File Name: parlai/agents/drqa/agents.py
Class Name: DocReaderAgent
Method Name: __init__
Project Name: mariogeiger/se3cnn
Commit Name: e3883e98057396d886f90328ea32e0f0a01f2535
Time: 2018-08-01
Author: geiger.mario@gmail.com
File Name: examples/tetris.py
Class Name:
Method Name: main
Project Name: dpressel/mead-baseline
Commit Name: 36050dae562e7b01b7d3a78571eceefb66ea0490
Time: 2018-07-25
Author: blester125@users.noreply.github.com
File Name: python/baseline/pytorch/tagger/model.py
Class Name: RNNTaggerModel
Method Name: compute_loss