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
223b9137
Commit
223b9137
authored
Jan 20, 2013
by
Steven Cordwell
Browse files
move self.time creation to MDP class
parent
d6e05358
Changes
1
Hide whitespace changes
Inline
Side-by-side
mdp.py
View file @
223b9137
...
...
@@ -239,6 +239,9 @@ class MDP(object):
# the verbosity is by default turned off
self
.
verbose
=
False
# Initially the time taken to perform the computations is set to None
self
.
time
=
None
# These are some placeholder attributes that need to be overridden in
# child classes.
# S is the number of states
...
...
@@ -543,8 +546,6 @@ class PolicyIteration(MDP):
self
.
thresh
=
epsilon
self
.
iter
=
0
self
.
time
=
None
def
iterate
(
self
):
""""""
...
...
@@ -675,8 +676,6 @@ class QLearning(MDP):
self
.
mean_discrepancy
=
[]
self
.
discrepancy
=
[]
self
.
time
=
None
def
iterate
(
self
):
"""
"""
...
...
@@ -892,8 +891,6 @@ class ValueIteration(MDP):
self
.
thresh
=
epsilon
self
.
iter
=
0
self
.
time
=
None
def
boundIter
(
self
,
epsilon
):
"""Computes a bound for the number of iterations for the value iteration
...
...
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