예제 #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
예제 #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)
예제 #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)
예제 #4
0
 def activate(self, state, action):
     """ Save the current state for state-dependent exploration. """
     self.state = state
     return DiscreteExplorer.activate(self, state, action)
예제 #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
예제 #6
0
 def __init__(self, epsilon=0.2, decay=0.9998):
     DiscreteExplorer.__init__(self)
     self.state = None
예제 #7
0
 def __init__(self, tau = 2., decay = 0.9995):
     DiscreteExplorer.__init__(self)
     self.tau = tau
     self.decay = decay
     self._state = None
예제 #8
0
 def __init__(self, epsilon=0.3, decay=0.9999):
     DiscreteExplorer.__init__(self)
     self.epsilon = epsilon
     self.decay = decay
예제 #9
0
 def activate(self, state, action):
     self.state = state
     return DiscreteExplorer.activate(self, state, action)
예제 #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
예제 #11
0
 def __init__(self, tau=2., decay=0.9995):
     DiscreteExplorer.__init__(self)
     self.tau = tau
     self.decay = decay
     self._state = None
예제 #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()
예제 #13
0
파일: egreedy.py 프로젝트: Angeliqe/pybrain
 def __init__(self, epsilon = 0.3, decay = 0.9999):
     DiscreteExplorer.__init__(self)
     self.epsilon = epsilon
     self.decay = decay
예제 #14
0
 def __init__(self, epsilon = 0.2, decay = 0.9998):
     DiscreteExplorer.__init__(self)
     self.state = None
예제 #15
0
 def activate(self, state, action):
     self.state = state
     return DiscreteExplorer.activate(self, state, action)
예제 #16
0
 def activate(self, state, action):
     """ Save the current state for state-dependent exploration. """
     self.state = state
     return DiscreteExplorer.activate(self, state, action)
예제 #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()