We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gamma = 0.5 P_from_mdp_to_mrp = [ [0.5, 0.5, 0.0, 0.0, 0.0], [0.5, 0.0, 0.5, 0.0, 0.0], [0.0, 0.0, 0.0, 0.5, 0.5], [0.0, 0.1, 0.2, 0.2, 0.5], [0.0, 0.0, 0.0, 0.0, 1.0], ] P_from_mdp_to_mrp = np.array(P_from_mdp_to_mrp) R_from_mdp_to_mrp = [-0.5, -1.5, -1.0, 5.5, 0]
gamma
V = compute(P_from_mdp_to_mrp, R_from_mdp_to_mrp, gamma, 5) print("MDP中每个状态价值分别为\n", V)` 其中P[4,4]应该是0吧?
The text was updated successfully, but these errors were encountered:
终止状态有个自己到自己的transit probability = 1,这个在状态转移图上是默认不用画出来的
Sorry, something went wrong.
No branches or pull requests
gamma
= 0.5P_from_mdp_to_mrp = [
[0.5, 0.5, 0.0, 0.0, 0.0],
[0.5, 0.0, 0.5, 0.0, 0.0],
[0.0, 0.0, 0.0, 0.5, 0.5],
[0.0, 0.1, 0.2, 0.2, 0.5],
[0.0, 0.0, 0.0, 0.0, 1.0],
]
P_from_mdp_to_mrp = np.array(P_from_mdp_to_mrp)
R_from_mdp_to_mrp = [-0.5, -1.5, -1.0, 5.5, 0]
V = compute(P_from_mdp_to_mrp, R_from_mdp_to_mrp, gamma, 5)
print("MDP中每个状态价值分别为\n", V)`
其中P[4,4]应该是0吧?
The text was updated successfully, but these errors were encountered: