aa805170e320ffdab392758c230d5c7078d3b75b,examples/tox21/predictor.py,InferenceLoop,customized_inference,#InferenceLoop#Any#Any#Any#,78
Before Change
for batch in iterator:
x = converter(batch, device=device)
y = self.predictor.predict(*x)
ret.append(cuda.to_cpu(y.data) )
return np.concatenate(ret, axis=0)
def inference(self, X):
After Change
for batch in iterator:
x = converter(batch, device=device)
y_prob = self.predictor.predict(*x)
y_prob = cuda.to_cpu(y_prob.data)
y_pred = np.where(y_prob > .5, 1, -1)
ret.append(y_pred)
return np.concatenate(ret, axis=0)
def inference(self, X):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: pfnet-research/chainer-chemistry
Commit Name: aa805170e320ffdab392758c230d5c7078d3b75b
Time: 2017-12-18
Author: oono@preferred.jp
File Name: examples/tox21/predictor.py
Class Name: InferenceLoop
Method Name: customized_inference
Project Name: chainer/chainercv
Commit Name: 5b36f836715758d83733531ad2253775b476a764
Time: 2017-05-08
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/links/ssd/ssd.py
Class Name: SSD
Method Name: _suppress
Project Name: chainer/chainercv
Commit Name: d37d08d9b2a806b3345fba41711c0d517b92a65c
Time: 2017-06-15
Author: yuyuniitani@gmail.com
File Name: chainercv/links/model/vgg/vgg16.py
Class Name: VGG16Layers
Method Name: predict
Project Name: eriklindernoren/PyTorch-YOLOv3
Commit Name: 9b0a0dd6fe7b4ac021d91acc6b4f96b403dd6b67
Time: 2019-04-26
Author: eriklindernoren@live.se
File Name: models.py
Class Name: Darknet
Method Name: forward