Ejemplo n.º 1
0
 def __init__(self, game_name, mode_name, input_shape, action_space,
              logger_path, model_path):
     BaseGameModel.__init__(self, game_name, mode_name, logger_path,
                            input_shape, action_space)
     self.model_path = model_path
     self.model = ConvolutionalNeuralNetwork(input_shape,
                                             action_space).model
Ejemplo n.º 2
0
 def __init__(self, game_name, mode_name, input_shape, action_space,
              logger_path, model_path):
     BaseGameModel.__init__(self, game_name, mode_name, logger_path,
                            input_shape, action_space)
     self.model_path = model_path
     self.ddqn = ConvolutionalNeuralNetwork(self.input_shape,
                                            action_space).model
     if os.path.isfile(self.model_path):
         self.ddqn.load_weights(self.model_path)
Ejemplo n.º 3
0
 def __init__(self, game_name, mode_name, input_shape, action_space,
              logger_path):
     BaseGameModel.__init__(self, game_name, mode_name, logger_path,
                            input_shape, action_space)