Data Science, Reinforcement Learning, Q Learning, S P 500 Index, Finance.
past_actions = current_state_value Now let’s visualize how well are Q-learning model did. First let’s determine if the model has actually learned anything. This can be done by plotting the rewards: import matplotlib.pyplot as plt plt.plot(rewards) plt.title('Reward vs Iteration')