Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
pymdptoolbox
Commits
d6e05358
Commit
d6e05358
authored
Jan 20, 2013
by
Steven Cordwell
Browse files
TypeError --> ValueError
parent
ee6624a8
Changes
1
Show whitespace changes
Inline
Side-by-side
mdp.py
View file @
d6e05358
...
...
@@ -874,7 +874,7 @@ class ValueIteration(MDP):
self
.
value
=
matrix
(
zeros
((
self
.
S
,
1
)))
else
:
if
(
initial_value
.
size
!=
self
.
S
):
raise
Typ
eError
(
"The initial value must be length S"
)
raise
Valu
eError
(
"The initial value must be length S"
)
self
.
value
=
matrix
(
initial_value
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment