src/core/reinforcement/agent/DeepAgent.java
public void endEpisode() throws MatrixException, NeuralNetworkException, DynamicParamException, AgentException {
        if (updateValuePerEpisode) valueFunction.update(stateTransition);
        policy.update();
        if (policy.isLearning() && environment.getState().episodeID() > 0 && environment.getState().episodeID() % agentUpdateCycle == 0) update();
    }
/**
     * Ends episode and if end of update cycle is reached updates DeepAgent.
     *
     * @throws NeuralNetworkException throws exception if neural network operation fails.
     * @throws MatrixException throws exception if matrix operation fails.
     * @throws DynamicParamException throws exception if parameter (params) setting fails.
     * @throws AgentException throws exception if update of estimator fails.
     */
Ends episode and if end of update cycle is reached updates DeepAgent.

@throws NeuralNetworkException throws exception if neural network operation fails.
@throws MatrixException throws exception if matrix operation fails.
@throws DynamicParamException throws exception if parameter (params) setting fails.
@throws AgentException throws exception if update of estimator fails.
Ends episode and if end of update cycle is reached updates DeepAgent . @throws NeuralNetworkException throws exception if neural network operation fails . @throws MatrixException throws exception if matrix operation fails . @throws DynamicParamException throws exception if parameter ( params ) setting fails . @throws AgentException throws exception if update of estimator fails .
public void endEpisode() throws MatrixException, NeuralNetworkException, DynamicParamException, AgentException {
        if (updateValuePerEpisode) valueFunction.update(stateTransition);
        policy.update();
        if (policy.isLearning() && environment.getState().episodeID() > 0 && environment.getState().episodeID() % agentUpdateCycle == 0) update();
    }
public void endEpisode ( ) throws MatrixException , NeuralNetworkException , DynamicParamException , AgentException { if ( updateValuePerEpisode ) valueFunction . update ( stateTransition ) ; policy . update ( ) ; if ( policy . isLearning ( ) && environment . getState ( ) . episodeID ( ) > 0 && environment . getState ( ) . episodeID ( ) % agentUpdateCycle == 0 ) update ( ) ; }
Ends episode and if end of update cycle is reached updates DeepAgent.
Ends episode and if end of update cycle is reached updates DeepAgent .