def __init__(self): QLearningAgent.__init__(self) self.name = "FunctionAgent" self.discount = 1.0 self.learn_rate = 0.1 self.epsilon = 0 self.theta_flap = np.zeros(4) self.theta_noflap = np.zeros(4) self.Q_table = np.zeros((15,15,15,19,2))
def __init__(self): state_size = rospy.get_param('/cartpole_v0/state_size') action_size = rospy.get_param('/cartpole_v0/n_actions') gamma = rospy.get_param('/cartpole_v0/gamma') epsilon = rospy.get_param('/cartpole_v0/epsilon') epsilon_decay = rospy.get_param('/cartpole_v0/epsilon_decay') epsilon_min = rospy.get_param('/cartpole_v0/epsilon_min') batch_size = rospy.get_param('/cartpole_v0/batch_size') QLearningAgent.__init__(self, state_size=state_size, action_size=action_size, gamma=gamma, epsilon=epsilon, epsilon_decay=epsilon_decay, epsilon_min=epsilon_min, batch_size=batch_size)
def __init__(self, alpha=0.2, discount=0.8, epsilon=0.1): QLearningAgent.__init__(self, alpha=alpha, discount=discount, epsilon=epsilon) self.count = 0
def __init__(self): QLearningAgent.__init__(self, 4, 2)