def initialize(self, **kwargs):
        """
        Initialize the failure penalty and success reward

        :param kwargs: dictionary containing failure penalty and success reward
        :return: Nothing
        """

        if 'failure_penalty' in kwargs:
            self.failure_penalty = kwargs['failure_penalty']
        if 'success_reward' in kwargs:
            self.success_reward = kwargs['success_reward']
        if 'state' in kwargs:
            self.prev_state = deepcopy(kwargs['state'])
        else:
            self.prev_state = None
        if 'goal' in kwargs:
            self.prev_goal = deepcopy(kwargs['goal'])
        else:
            self.prev_goal = None

        Initialize the failure penalty and success reward

        :param kwargs: dictionary containing failure penalty and success reward
        :return: Nothing
        
plato/agent/component/dialogue_policy/reinforcement_learning/reward_function.py