maxQ = qs.getDouble(maxAction);
action = getEgPolicy().nextAction(hstack);
}
lastAction = action;
StepReply<O> stepReply = getMdp().step(action);
<BUG>accuReward += stepReply.getReward();
if (getStepCounter() % skipFrame == 0 || stepReply.isDone()) {</BUG>
INDArray ninput = getInput(stepReply.getObservation());
if (isHistoryProcessor)
getHistoryProcessor().add(ninput);

maxQ = qs.getDouble(maxAction);
action = getEgPolicy().nextAction(hstack);
}
lastAction = action;
StepReply<O> stepReply = getMdp().step(action);
accuReward += stepReply.getReward()*configuration.getRewardFactor();
if (getStepCounter() % skipFrame == 0 || stepReply.isDone()) {
INDArray ninput = getInput(stepReply.getObservation());
if (isHistoryProcessor)
getHistoryProcessor().add(ninput);
