Esempio n. 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
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)
Esempio n. 4
0
 def activate(self, state, action):
     """ Save the current state for state-dependent exploration. """
     self.state = state
     return DiscreteExplorer.activate(self, state, action)
Esempio n. 5
0
 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
Esempio n. 6
0
 def __init__(self, epsilon=0.2, decay=0.9998):
     DiscreteExplorer.__init__(self)
     self.state = None
Esempio n. 7
0
 def __init__(self, tau = 2., decay = 0.9995):
     DiscreteExplorer.__init__(self)
     self.tau = tau
     self.decay = decay
     self._state = None
Esempio n. 8
0
 def __init__(self, epsilon=0.3, decay=0.9999):
     DiscreteExplorer.__init__(self)
     self.epsilon = epsilon
     self.decay = decay
Esempio n. 9
0
 def activate(self, state, action):
     self.state = state
     return DiscreteExplorer.activate(self, state, action)
Esempio n. 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
Esempio n. 11
0
 def __init__(self, tau=2., decay=0.9995):
     DiscreteExplorer.__init__(self)
     self.tau = tau
     self.decay = decay
     self._state = None
Esempio n. 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()
Esempio n. 13
0
 def __init__(self, epsilon = 0.3, decay = 0.9999):
     DiscreteExplorer.__init__(self)
     self.epsilon = epsilon
     self.decay = decay
Esempio n. 14
0
 def __init__(self, epsilon = 0.2, decay = 0.9998):
     DiscreteExplorer.__init__(self)
     self.state = None
Esempio n. 15
0
 def activate(self, state, action):
     self.state = state
     return DiscreteExplorer.activate(self, state, action)
Esempio n. 16
0
 def activate(self, state, action):
     """ Save the current state for state-dependent exploration. """
     self.state = state
     return DiscreteExplorer.activate(self, state, action)
Esempio n. 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()