src/core/reinforcement/function/NNFunctionEstimator.java
public Matrix predict(Matrix state) throws NeuralNetworkException, MatrixException {
        if (stateValueMap.containsKey(state)) return stateValueMap.get(state);
        Matrix values = neuralNetwork.predict(new MMatrix(state)).get(0);
        stateValueMap.put(state, values);
        return values;
    }
/**
     * Predicts state values corresponding to a state.
     *
     * @param state state.
     * @return state values corresponding to a state.
     * @throws NeuralNetworkException throws exception if neural network operation fails.
     * @throws MatrixException throws exception if depth of matrix is less than 1.
     */
Predicts state values corresponding to a state.
@param state state.
@return state values corresponding to a state.
@throws NeuralNetworkException throws exception if neural network operation fails.
@throws MatrixException throws exception if depth of matrix is less than 1.
Predicts state values corresponding to a state . @param state state . @return state values corresponding to a state . @throws NeuralNetworkException throws exception if neural network operation fails . @throws MatrixException throws exception if depth of matrix is less than 1 .
public Matrix predict(Matrix state) throws NeuralNetworkException, MatrixException {
        if (stateValueMap.containsKey(state)) return stateValueMap.get(state);
        Matrix values = neuralNetwork.predict(new MMatrix(state)).get(0);
        stateValueMap.put(state, values);
        return values;
    }
public Matrix predict ( Matrix state ) throws NeuralNetworkException , MatrixException { if ( stateValueMap . containsKey ( state ) ) return stateValueMap . get ( state ) ; Matrix values = neuralNetwork . predict ( new MMatrix ( state ) ) . get ( 0 ) ; stateValueMap . put ( state , values ) ; return values ; }
Predicts state values corresponding to a state.
Predicts state values corresponding to a state .