Data Science, Reinforcement Learning, Q Learning, S P 500 Index, Finance.
current_state_value[0] - past_state_value[0] reward += past_state_value[1] - current_state_value[1] elif past_action == 'sell_sell': reward = past_state_value[0] - current_state_value[0] reward += past_state_value[1] - current_state_value[1] else: reward = past_state_value[0] -