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
963ad866
Commit
963ad866
authored
Jan 06, 2015
by
Steven Cordwell
Browse files
[tests] Use mdptoolbox.example.small in the tests
parent
6b126aec
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tests/utils.py
View file @
963ad866
...
...
@@ -15,12 +15,11 @@ ACTIONS = 3
SMALLNUM
=
10e-12
# np.arrays
P_small
=
np
.
array
([[[
0.5
,
0.5
],[
0.8
,
0.2
]],[[
0
,
1
],[
0.1
,
0.9
]]])
R_small
=
np
.
array
([[
5
,
10
],
[
-
1
,
2
]])
P_small
,
R_small
=
mdptoolbox
.
example
.
small
()
P_sparse
=
np
.
empty
(
2
,
dtype
=
object
)
P_sparse
[
0
]
=
sp
.
sparse
.
csr_matrix
(
[[
0.5
,
0.5
],[
0.8
,
0.2
]
])
P_sparse
[
1
]
=
sp
.
sparse
.
csr_matrix
(
[[
0
,
1
],[
0.1
,
0.9
]
])
P_sparse
[
0
]
=
sp
.
sparse
.
csr_matrix
(
P_small
[
0
])
P_sparse
[
1
]
=
sp
.
sparse
.
csr_matrix
(
P_small
[
1
])
P_forest
,
R_forest
=
mdptoolbox
.
example
.
forest
()
...
...
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