Exemplo n.º 1
0
 def __init__(self, feature_set):
     self.opponent_agent = MiniSoccerAgentHandCoded(role=ROLE_OPPONENT)
     environment = MiniSoccerEnvironment(self.opponent_agent)
     super(MiniSoccerAgent, self).__init__(MiniSoccerActions(), environment,
                                           feature_set)
     self.set_algorithm(
         rl.SarsaLambdaFeaturized(self, ALPHA, EPSILON, LAMBDA))
Exemplo n.º 2
0
 def __init__(self, feature_set):
     actions = KeepAwayActions()
     environment = KeepAwayEnvironment()
     algorithm = rl.SarsaLambdaFeaturized(actions, environment, feature_set)
     super(KeepAwayAgent, self).__init__(actions, environment, feature_set,
                                         algorithm)