Skip to content

Commit 830ac74

Browse files
authored
Merge pull request dennybritz#31 from hogehogeworld/master
changed s to state, fixed typo
2 parents 106f224 + 767cca3 commit 830ac74

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

DP/Value Iteration Solution.ipynb

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 34,
5+
"execution_count": 17,
66
"metadata": {
77
"collapsed": false
88
},
@@ -18,7 +18,7 @@
1818
},
1919
{
2020
"cell_type": "code",
21-
"execution_count": 35,
21+
"execution_count": 18,
2222
"metadata": {
2323
"collapsed": false
2424
},
@@ -30,7 +30,7 @@
3030
},
3131
{
3232
"cell_type": "code",
33-
"execution_count": 36,
33+
"execution_count": 19,
3434
"metadata": {
3535
"collapsed": false
3636
},
@@ -63,7 +63,7 @@
6363
" \"\"\"\n",
6464
" A = np.zeros(env.nA)\n",
6565
" for a in range(env.nA):\n",
66-
" for prob, next_state, reward, done in env.P[s][a]:\n",
66+
" for prob, next_state, reward, done in env.P[state][a]:\n",
6767
" A[a] += prob * (reward + discount_factor * V[next_state])\n",
6868
" return A\n",
6969
" \n",
@@ -98,7 +98,7 @@
9898
},
9999
{
100100
"cell_type": "code",
101-
"execution_count": 37,
101+
"execution_count": 20,
102102
"metadata": {
103103
"collapsed": false
104104
},
@@ -174,10 +174,11 @@
174174
}
175175
],
176176
"metadata": {
177+
"anaconda-cloud": {},
177178
"kernelspec": {
178-
"display_name": "Python 3",
179+
"display_name": "Python [Root]",
179180
"language": "python",
180-
"name": "python3"
181+
"name": "Python [Root]"
181182
},
182183
"language_info": {
183184
"codemirror_mode": {

0 commit comments

Comments
 (0)