dc1835982db065302b92ba8a8fdf4139af910a66,ml/rl/test/gridworld/gridworld_evaluator.py,GridworldDDPGEvaluator,evaluate_critic,#GridworldDDPGEvaluator#Any#,387
Before Change
actions=self.logged_actions,
)
error_sum = 0.0
for x in range(len(self.logged_states)):
ground_truth = self.logged_values[x][0]
target_value = critic_prediction[x]
error_sum += abs(ground_truth - target_value)
logger.info(
"EVAL ERROR: {0:.3f}".format(error_sum / float(len(self.logged_states)))
)
self.mc_loss.append(error_sum / float(len(self.logged_states)))
After Change
)
def evaluate_critic(self, critic):
return super(GridworldDDPGEvaluator, self).evaluate(critic)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: facebookresearch/Horizon
Commit Name: dc1835982db065302b92ba8a8fdf4139af910a66
Time: 2018-10-30
Author: jjg@fb.com
File Name: ml/rl/test/gridworld/gridworld_evaluator.py
Class Name: GridworldDDPGEvaluator
Method Name: evaluate_critic
Project Name: facebookresearch/pytext
Commit Name: fa0fea934bad76e9906c013e377ce80c77cbd5e4
Time: 2019-01-03
Author: geoffreygoh@fb.com
File Name: pytext/trainers/hogwild_trainer.py
Class Name: HogwildTrainer
Method Name: train
Project Name: dpressel/mead-baseline
Commit Name: 3bc0a1906529329f57c749f6a175eca4b7907a96
Time: 2018-05-30
Author: dpressel@gmail.com
File Name: python/baseline/pytorch/classify/model.py
Class Name: NBowBase
Method Name: _init_stacked