Exemple #1
0
    def __init__(self, dim, sigma=0.0):
        Explorer.__init__(self, dim, dim)
        self.dim = dim

        # initialize parameters to sigma
        ParameterContainer.__init__(self, dim, stdParams=0)
        self.sigma = [sigma] * dim
Exemple #2
0
 def __init__(self, dim, sigma=0.):
     Explorer.__init__(self, dim, dim)
     self.dim = dim
     
     # initialize parameters to sigma
     ParameterContainer.__init__(self, dim, stdParams=0)
     self.sigma = [sigma] * dim
Exemple #3
0
 def __init__(self, statedim, actiondim, sigma= -2.):
     Explorer.__init__(self, actiondim, actiondim)
     self.statedim = statedim
     self.actiondim = actiondim
     
     # initialize parameters to sigma
     ParameterContainer.__init__(self, actiondim, stdParams=0)
     self.sigma = [sigma] * actiondim
     
     # exploration matrix (linear function)
     self.explmatrix = random.normal(0., expln(self.sigma), (statedim, actiondim))
     
     # store last state
     self.state = None
Exemple #4
0
    def __init__(self, statedim, actiondim, sigma= -2.):
        Explorer.__init__(self, actiondim, actiondim)
        self.statedim = statedim
        self.actiondim = actiondim

        # initialize parameters to sigma
        ParameterContainer.__init__(self, actiondim, stdParams=0)
        self.sigma = [sigma] * actiondim

        # exploration matrix (linear function)
        self.explmatrix = random.normal(0., expln(self.sigma), (statedim, actiondim))

        # store last state
        self.state = None
 def __init__(self):
     Explorer.__init__(self, 1, 1)
Exemple #6
0
 def __init__(self):
     Explorer.__init__(self, 1, 1)
Exemple #7
0
 def __init__(self, shield_options, exploration):
     Explorer.__init__(self, 2, 1)
     self.exploration = exploration
     self.shield_options = max(1, shield_options)
Exemple #8
0
 def activate(self, state, action):
     """ Save the current state for state-dependent exploration. """
     self.state = state
     return Explorer.activate(self, state, action)
 def __init__(self, shield_options, exploration):
     Explorer.__init__(self, 5, 5)
     self.exploration = exploration
     self.shield_options = max(1, shield_options)
     print "init"