Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 36821

For questions related to the deep Q-network (DQN), which is a deep neural network (e.g. a convolutional neural network) trained with a variant of Q-learning. The expression was coined in the paper "Playing Atari with Deep Reinforcement Learning" (2013) by Google's DeepMind.

3 votes
Accepted

Q learning: How to create output layer in which actions are combinations of multiple sub-act...

Rather than flattening your sub-action spaces into an action space that consists of very many primitive actions and having a DQN provide an output value for the many different possibilities, instead you … Where a DQN would be a function $f : \mathcal{S} \rightarrow \mathbb{R}^{|\mathcal{A}|}$, the decoupled network would be $N$ functions $f_i : \mathcal{S} \rightarrow \mathbb{R}^{|\mathcal{A}_i|}$. …
David's user avatar
  • 5,030
1 vote

How does one know that a problem is "model-free" in reinforcement learning?

A reinforcement learning algorithm is considered model based if it uses estimates of the environments dynamics to help learn. For instance, in the Tabular Dyna-Q algorithm, every time you visit a stat …
David's user avatar
  • 5,030
2 votes
Accepted

What are the variables that need to be saved and loaded, so that a DQN model starts where it...

As per OP's request in the comments, here is a snippet of code I used for Car-pool. class DQN: def __init__(self, observation_space, action_space): self.exploration_rate = epsilon_max self.observation_space …
David's user avatar
  • 5,030
4 votes
Accepted

Do we use validation and test sets for training a reinforcement learning agent?

for the sampled experience from a replay buffer in DQN. … Assuming we sample uniformly at random as in vanilla DQN, then the probability of the point never being seen is 0.368. …
David's user avatar
  • 5,030
0 votes
Accepted

What reinforcement learning algorithm should I use in continuous states?

I would recommend looking at Deep Q-Learning.
David's user avatar
  • 5,030
2 votes

Is there an upper limit to the maximum cumulative reward in a deep reinforcement learning pr...

In any reinforcement learning problem, not just Deep RL, then there is an upper bound for the cumulative reward, provided that the problem is episodic and not continuing. If the problem is episodic an …
David's user avatar
  • 5,030
1 vote
Accepted

When using experience replay in reinforcement learning, which state is used for training?

The way the states are used is as follows: Typically your $Q$-network will state a state as input and output scores over the action space. I.e. $Q : \mathcal{S} \rightarrow \mathbb{R}^{|\mathcal{A}|}$ …
David's user avatar
  • 5,030
2 votes

Why does reinforcement learning using a non-linear function approximator diverge when using ...

It is not so much the problem of using Reinforcement Learning to train the neural networks, it is the assumptions made about the data given to standard Neural Networks. They are not capable of handlin …
David's user avatar
  • 5,030
3 votes
Accepted

When calculating the cost in deep Q-learning, do we use both the input and target states?

I will first explain briefly to you the difference between supervised learning and reinforcement learning to make sure that you don't have any misunderstandings. In supervised learning you are provide …
David's user avatar
  • 5,030
0 votes

When we use a neural network to approximate the Q values, is the Q target a single value?

In the Human Level Control paper where the DQN gained its popularity, the network is a little different to the tabular function. …
David's user avatar
  • 5,030
2 votes
Accepted

How is the DQN loss derived from (or theoretically motivated by) the Bellman equation, and h...

The loss function that you minimise in DQN is $$ L(\theta) = \mathbb{E}_{(s,a,r,s')\sim U(D)}\left[\left( r + \gamma \max_{a'}Q(s', a'; \theta^-) - Q(s, a; \theta)\right)^2 \right]\;$$ where $U(D)$ denotes …
David's user avatar
  • 5,030
3 votes
Accepted

What is the target output for updating a Deep Q Network

As you say, the output of a $Q$ network is typically a value for all actions of the given state. Let us call this output $\mathbf{x} \in \mathbb{R}^{|\mathcal{A}|}$. To train your network using the sq …
David's user avatar
  • 5,030
4 votes

Why does regular Q-learning (and DQN) overestimate the Q values?

The overestimation comes from the random initialisation of your Q-value estimates. Obviously these will not be perfect (if they were then we wouldn't need to learn the true Q-values!). In many value b …
David's user avatar
  • 5,030
3 votes

Why can't DQN be used for self-driving cars?

I'm not familiar with the ins and outs of self-driving cars, but I imagine that the action space is not discrete. For instance, the car may want to decide what angle it needs to turn (rather than left …
David's user avatar
  • 5,030
7 votes

Why do we need target network in deep Q learning?

In DQN that was presented in the original paper the update target for the Q-Network is $\left(r_t + \max_aQ(s_{t+1},a;\theta^-) - Q(s_t,a_t; \theta)\right)^2$ were $\theta^-$ is some old version of the …
David's user avatar
  • 5,030

15 30 50 per page