93d87b907ff5ef42753492c79e602b31f9e7df00,chainerrl/agents/categorical_dqn.py,CategoricalDQN,_compute_loss,#CategoricalDQN#Any#Any#Any#,128
Before Change
if self.batch_accumulator == "sum":
loss = F.sum(eltwise_loss)
else:
loss = F.mean(F.sum(eltwise_loss, axis=1))
return loss
After Change
for e in delta:
errors_out.append(e)
if "weights" in exp_batch:
return compute_weighted_value_loss(
y, t, exp_batch["weights"],
clip_delta=self.clip_delta,
batch_accumulator=self.batch_accumulator)
else:
return compute_value_loss(y, t, clip_delta=self.clip_delta,
batch_accumulator=self.batch_accumulator)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: chainer/chainerrl
Commit Name: 93d87b907ff5ef42753492c79e602b31f9e7df00
Time: 2018-11-03
Author: seann999@gmail.com
File Name: chainerrl/agents/categorical_dqn.py
Class Name: CategoricalDQN
Method Name: _compute_loss
Project Name: nipy/dipy
Commit Name: db47e6145408d73e338c0cb16cf2f59ba7422822
Time: 2010-04-13
Author: matthew.brett@gmail.com
File Name: dipy/io/dicomwrappers.py
Class Name: Wrapper
Method Name: slice_indicator
Project Name: chainer/chainerrl
Commit Name: 622dc5ba487a5b87fad7f0e988ddc664056601a8
Time: 2019-07-28
Author: prabhat.nagarajan@gmail.com
File Name: chainerrl/agents/iqn.py
Class Name: IQN
Method Name: _compute_loss