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
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)
def __init__(self, mode_name, input_shape, action_space, logger_path, model_path): self.action_space = action_space self.input_shape = input_shape self.logger = Logger("Breakout " + mode_name, logger_path) 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)
def __init__(self, input_shape, action_space): DDQNGameModel.__init__( self, "DDQN training", input_shape, action_space, "./output/logs/training/" + self.get_date() + "/", "./output/neural_nets/" + self.get_date() + "/model.h5") if os.path.exists(os.path.dirname(self.model_path)): shutil.rmtree(os.path.dirname(self.model_path), ignore_errors=True) os.makedirs(os.path.dirname(self.model_path)) self.ddqn_target = ConvolutionalNeuralNetwork(self.input_shape, action_space).model self.reset_target_network() self.epsilon = EXPLORATION_MAX self.memory = []
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 #print("test before here") if os.path.isfile(self.model_path): print("--------------------------------------") self.ddqn = load_model(self.model_path) print("LOADED") print("model path" + model_path) print("logger_path" + logger_path)