getPolicy {MDP} | R Documentation |
Get parts of the optimal policy.
getPolicy(mdp, sId=1:mdp$states - 1, labels=FALSE)
mdp |
The MDP loaded using loadMDP. |
sId |
Vector of id's of the states we want to retrive. |
labels |
If true return policy labels otherwise return action index. |
The policy (matrix (if labels = FALSE
) otherwise data frame).
Lars Relund lars@relund.dk