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
fab13a85
Commit
fab13a85
authored
Sep 10, 2013
by
Steven Cordwell
Browse files
use import mdptoolbox in the docstrings
parent
984d489d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mdptoolbox/example.py
View file @
fab13a85
...
@@ -79,8 +79,8 @@ def forest(S=3, r1=4, r2=2, p=0.1, is_sparse=False):
...
@@ -79,8 +79,8 @@ def forest(S=3, r1=4, r2=2, p=0.1, is_sparse=False):
Examples
Examples
--------
--------
>>> import mdp
>>> import mdp
toolbox.example
>>> P, R = mdp.example
F
orest()
>>> P, R = mdp
toolbox
.example
.f
orest()
>>> P
>>> P
array([[[ 0.1, 0.9, 0. ],
array([[[ 0.1, 0.9, 0. ],
[ 0.1, 0. , 0.9],
[ 0.1, 0. , 0.9],
...
@@ -164,8 +164,8 @@ def rand(S, A, is_sparse=False, mask=None):
...
@@ -164,8 +164,8 @@ def rand(S, A, is_sparse=False, mask=None):
Examples
Examples
--------
--------
>>> import mdp
>>> import mdp
toolbox.example
>>> P, R = mdp.example
R
and(5, 3)
>>> P, R = mdp
toolbox
.example
.r
and(5, 3)
"""
"""
# making sure the states and actions are more than one
# making sure the states and actions are more than one
...
...
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