AlignmentCase::IterateResult AlignmentCase::iterate (void) { glu::CallLogWrapper gl(m_context.getRenderContext().getFunctions(), m_testCtx.getLog()); gl.enableLogging(true); if (verifyMaxValue(gl, m_target, m_minValue, m_verifierType)) m_testCtx.setTestResult(QP_TEST_RESULT_PASS, "Pass"); else m_testCtx.setTestResult(QP_TEST_RESULT_FAIL, "Got invalid value"); return STOP; }
double QLearning::Agent_LearningCalculation(State state, State nextState, int action, float reward) { return (state.actions[action] + this->rlParameters.getAlpha() * (reward + ((this->rlParameters.getGamma() * verifyMaxValue(nextState)) - state.actions[action]))); }