Exemple #1
0
 def __init__(self,
              epsilon=0.2,
              tau=2.5,
              epsilon_decay=0.9999,
              tau_decay=1):
     DiscreteExplorer.__init__(self)
     self.epsilon = epsilon
     self.tau = tau
     self.epsilon_decay = epsilon_decay
     self.tau_decay = tau_decay
     self._state = None
 def activate(self, state, action):
     """ The super class ignores the state and simply passes the
         action through the module. implement _forwardImplementation()
         in subclasses.
     """
     self._state = state
     return DiscreteExplorer.activate(self, state, action)
 def activate(self, state, action):
     """ The super class ignores the state and simply passes the
         action through the module. implement _forwardImplementation()
         in subclasses.
     """
     self._state = state
     return DiscreteExplorer.activate(self, state, action)
 def activate(self, state, action):
     """ Save the current state for state-dependent exploration. """
     self.state = state
     return DiscreteExplorer.activate(self, state, action)
 def __init__(self, epsilon = 0.2, decay = 0.9998):
     """ TODO: the epsilon and decay parameters are currently
         not implemented.
     """
     DiscreteExplorer.__init__(self)
     self.state = None
Exemple #6
0
 def __init__(self, epsilon=0.2, decay=0.9998):
     DiscreteExplorer.__init__(self)
     self.state = None
 def __init__(self, tau = 2., decay = 0.9995):
     DiscreteExplorer.__init__(self)
     self.tau = tau
     self.decay = decay
     self._state = None
Exemple #8
0
 def __init__(self, epsilon=0.3, decay=0.9999):
     DiscreteExplorer.__init__(self)
     self.epsilon = epsilon
     self.decay = decay
Exemple #9
0
 def activate(self, state, action):
     self.state = state
     return DiscreteExplorer.activate(self, state, action)
Exemple #10
0
 def __init__(self, random_state, epsilon=0.3, decay=0.9999):
     DiscreteExplorer.__init__(self)
     self.random_state = random_state
     self.epsilon = epsilon
     self.decay = decay
     self.module = None
 def __init__(self, tau=2., decay=0.9995):
     DiscreteExplorer.__init__(self)
     self.tau = tau
     self.decay = decay
     self._state = None
Exemple #12
0
 def __init__(self, env, epsilon = 0.3, decay = 0.9999):
     DiscreteExplorer.__init__(self)
     self.epsilon = epsilon
     self.decay = decay
     self.env = env
     pyrand.seed()
Exemple #13
0
 def __init__(self, epsilon = 0.3, decay = 0.9999):
     DiscreteExplorer.__init__(self)
     self.epsilon = epsilon
     self.decay = decay
Exemple #14
0
 def __init__(self, epsilon = 0.2, decay = 0.9998):
     DiscreteExplorer.__init__(self)
     self.state = None
Exemple #15
0
 def activate(self, state, action):
     self.state = state
     return DiscreteExplorer.activate(self, state, action)
Exemple #16
0
 def activate(self, state, action):
     """ Save the current state for state-dependent exploration. """
     self.state = state
     return DiscreteExplorer.activate(self, state, action)
Exemple #17
0
 def __init__(self, env, epsilon=0.3, decay=0.9999):
     DiscreteExplorer.__init__(self)
     self.epsilon = epsilon
     self.decay = decay
     self.env = env
     pyrand.seed()