{'fraction_non_alphanumeric': 0.02053388090349076, 'fraction_numerical': 0.0, 'mean_word_length': 4.701754385964913, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
An N-step Look Ahead Algorithm Using Mixed (On and Off) Policy Reinforcement Learning

In this paper, a new algorithm for reinforcement learning is proposed. Q-learning and SARSA are one of the most famous algorithms used in Reinforcement learning. Q-learning gives the most optimal path whereas SARSA gives the safest path. This paper proposes an algorithm that allows users to flexibly chose between safer or faster path in any given environment by altering the hyper parameter n. The approach taken to achieve this is N-step look ahead. In this the agent will update the initial states value after it has taken n steps using on- policy reinforcement learning and in adjacent step it applies off- policy RL. Using this technique, the algorithm overcomes the overestimation of value function prevalent in Q-learning as it emphasizes more on on-policy updates. This algorithm allows the user alter the dependency on bootstrapping and sampling in updating the value function.