src/core/reinforcement/policy/updateablepolicy/AbstractUpdateablePolicy.java
public void updateFunctionEstimator() throws NeuralNetworkException, MatrixException, DynamicParamException, AgentException {
        TreeSet<StateTransition> sampledStateTransitions = functionEstimator.getSampledStateTransitions();
        if (sampledStateTransitions == null || sampledStateTransitions.isEmpty()) return;

        for (StateTransition stateTransition : sampledStateTransitions) functionEstimator.store(stateTransition, getPolicyValues(stateTransition));
        postProcess();

        functionEstimator.update();

        if (isAutoSoftAlpha()) updateAlpha();
    }
/**
     * Updates policy.
     *
     * @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 function estimator update fails.
     */
Updates policy.
@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 function estimator update fails.
Updates policy . @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 function estimator update fails .
public void updateFunctionEstimator() throws NeuralNetworkException, MatrixException, DynamicParamException, AgentException {
        TreeSet<StateTransition> sampledStateTransitions = functionEstimator.getSampledStateTransitions();
        if (sampledStateTransitions == null || sampledStateTransitions.isEmpty()) return;
        for (StateTransition stateTransition : sampledStateTransitions) functionEstimator.store(stateTransition, getPolicyValues(stateTransition));
        postProcess();
        functionEstimator.update();
        if (isAutoSoftAlpha()) updateAlpha();
    }
public void updateFunctionEstimator ( ) throws NeuralNetworkException , MatrixException , DynamicParamException , AgentException { TreeSet < StateTransition > sampledStateTransitions = functionEstimator . getSampledStateTransitions ( ) ; if ( sampledStateTransitions == null || sampledStateTransitions . isEmpty ( ) ) return ; for ( StateTransition stateTransition : sampledStateTransitions ) functionEstimator . store ( stateTransition , getPolicyValues ( stateTransition ) ) ; postProcess ( ) ; functionEstimator . update ( ) ; if ( isAutoSoftAlpha ( ) ) updateAlpha ( ) ; }
Updates policy.
Updates policy .