concept network in category reinforcement learning

This is an excerpt from Manning's book Grokking Deep Reinforcement Learning.
The tricky part is that some OpenAI Gym environments, such as the cart-pole, have a wrapper code that artificially terminates an episode after some time steps. In CartPole-v0, the time step limit is 200, and in CartPole-v1 is 500. Now, this wrapper code helps to prevent agents from taking too long to complete an episode, which can be useful, but it can get you in trouble. Think about it, what do you think the value of having the pole straight up in time step 500 would be? I mean, if the pole is straight up, and you get +1 for every step, then the true value of straight- up is infinite. Yet since at time step 500 your agent times out, and a terminal flag is passed to the agent, you will bootstrap on zero if you’re not careful. This is bad. I cannot stress this enough. There are a handful of ways you can handle this issue, and here are the two common ones. Instead of bootstrapping on zero, bootstrap on the value of the next state as predicted by the network, either if (1) you reach the time step limit for the environment or find the key ‘TimeLimit.truncated’ in the info dictionary. Let me show you (2).
Let’s now dig into the details of this specialized neural network architecture called the Dueling network architecture. The dueling network is an improvement that applies only to the network architecture and not the algorithm. That is, we won’t make any changes to the algorithm, but the only modifications go into the network architecture. This property allows dueling networks to be combined with virtually any of the improvements proposed over the years to the original DQN algorithm. For instance, we could have a Dueling DQN agent, and a Dueling Double DQN agent (or the way I’m referring to it - Dueling DDQN), and more. Many of these improvements are just plug-and-play, which we take advantage of that in this chapter. Let’s now implement a dueling architecture to be used in our experiments and learn about it while building it.