0d4f3c5904b406312e2c9333308dd508da6c1ffc,chainercv/evaluations/eval_semantic_segmentation.py,,eval_semantic_segmentation,#Any#Any#Any#,18

Before Change


        mean_iu[i] = np.nanmean(iu)
        freq = hist.sum(axis=1) / hist.sum()
        fwavacc[i] = (freq[freq > 0] * iu[freq > 0]).sum()
    return acc, acc_cls, mean_iu, fwavacc

After Change



    
    xp = cuda.get_array_module(label_pred)
    label_pred = cuda.to_cpu(label_pred)
    label_true = cuda.to_cpu(label_true)

    ndim = label_pred.ndim
    if label_pred.ndim != label_true.ndim:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: chainer/chainercv
Commit Name: 0d4f3c5904b406312e2c9333308dd508da6c1ffc
Time: 2017-05-08
Author: yuyuniitani@gmail.com
File Name: chainercv/evaluations/eval_semantic_segmentation.py
Class Name:
Method Name: eval_semantic_segmentation


Project Name: chainer/chainerrl
Commit Name: ca802796082e29753523dcbea3655c0cb95aefbb
Time: 2017-07-31
Author: kataoka@preferred.jp
File Name: chainerrl/agents/ppo.py
Class Name: PPO
Method Name: act


Project Name: chainer/chainerrl
Commit Name: ca802796082e29753523dcbea3655c0cb95aefbb
Time: 2017-07-31
Author: kataoka@preferred.jp
File Name: chainerrl/agents/ppo.py
Class Name: PPO
Method Name: act_and_train


Project Name: pfnet-research/chainer-chemistry
Commit Name: 5001808a32db03d4d748f2cae1a1dd09d3810d37
Time: 2018-12-06
Author: mihaimorariu@gmail.com
File Name: chainer_chemistry/models/prediction/regressor.py
Class Name: Regressor
Method Name: _convert_to_scalar