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
f1033d54
Commit
f1033d54
authored
Jun 21, 2013
by
Steven Cordwell
Browse files
check the shape of each sparse random matrix
parent
88203b68
Changes
1
Hide whitespace changes
Inline
Side-by-side
test_mdptoolbox.py
View file @
f1033d54
...
...
@@ -223,9 +223,13 @@ def test_exampleRand_dense_check():
def
test_exampleRand_sparse_P_shape
():
assert
(
len
(
Prs
)
==
ACTIONS
)
for
a
in
range
(
ACTIONS
):
assert
(
Prs
[
a
].
shape
==
(
STATES
,
STATES
))
def
test_exampleRand_sparse_R_shape
():
assert
(
len
(
Rrs
)
==
ACTIONS
)
for
a
in
range
(
ACTIONS
):
assert
(
Rrs
[
a
].
shape
==
(
STATES
,
STATES
))
def
test_exampleRand_sparse_check
():
assert
mdp
.
check
(
Prs
,
Rrs
)
==
None
...
...
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