Comments (4)
Hi,
Thanks for this great implementation.
I encountered an error when tried to run "python3 main.py --type DDQN --env CartPole-v1 --batch_size 64 --with_PER"The error is:
/utils/memory_buffer.py", line 69, in sample_batch
batch.append((*data, idx))
TypeError: 'int' object is not iterableHave anyone fixed this issue?
I got the same issues. Did anyone fixed it?
from deep-rl-keras.
trying passing in the data
directly instead of the *data
I think the author were attempting to make it future proof.
from deep-rl-keras.
Hi, I'm having the same issue.
Changing *data
to data
bring an error on the next line idx = np.array([i[5] for i in batch])
: tuple index out of range
I've done a little debugging by printing out the the (idx, data) values and something stood out:
"
22014 (array([-0.08095277, 0.61171632, 0.0524595 , -0.81013508]), 1, 1.0, False, array([-0.06871845, 0.80608178, 0.0362568 , -1.08586616]))
22015 (array([-0.06871845, 0.80608178, 0.0362568 , -1.08586616]), 0, 1.0, False, array([-0.05259681, 0.61050081, 0.01453948, -0.78203035]))
22017 (array([-0.04038679, 0.80541993, -0.00110113, -1.07010368]), 1, 1.0, False, array([-0.0242784 , 1.00055643, -0.0225032 , -1.36313198]))
22017 (array([-0.04038679, 0.80541993, -0.00110113, -1.07010368]), 1, 1.0, False, array([-0.0242784 , 1.00055643, -0.0225032 , -1.36313198]))
22018 (array([-0.0242784 , 1.00055643, -0.0225032 , -1.36313198]), 1, 1.0, False, array([-0.00426727, 1.19595297, -0.04976584, -1.66276796]))
22019 (array([-0.00426727, 1.19595297, -0.04976584, -1.66276796]), 1, 1.0, False, array([ 0.01965179, 1.39161785, -0.0830212 , -1.97052703]))
32767 0
"
For some reason, the get function of the MemoryBuffer return "int(0)" as data, that's what's causing the "tuple index out of range" error.
We can also see the faulty idx which jumps to a crazy high value for some reason, and thus out of range of the memory i think (ending up in the data being a 0 ?)
EDIT: idx ends up pointing to a memory slot that has not yet been written (thus returning 0)
I'm still investigating but any help would be appreciated :)
from deep-rl-keras.
Hi, has anyone managed to fix this bug? I am new to DDQN and hit into this issue. Hope to get some help. Thanks in advance!
from deep-rl-keras.
Related Issues (20)
- ResourceExhaustedError HOT 3
- Testing A3C HOT 1
- TF 2.0? HOT 2
- DDPG - LunarLanderContinuous
- Quick question about DDPG HOT 1
- Visualizing learning of DDPG with tensorboard
- MsPacman-v0?
- Necessity of a Custom optimizer for the Critic (A2C).
- requirements
- A3C: Issue with keras.function in optimizer HOT 4
- Why we still need to define the action space
- Canβt actor-critic method solve mountain car environment? HOT 2
- DDQN.py function memorize: incorrect Q values ?
- [Help] does this ddqn can run 'breakout' environment?
- Unable to run examples HOT 2
- Axes don't match array
- A2C can't run NoFrameskip-v4?
- A2C optimizer get_updaet
- DQN: batch_shape = (None,) + tuple(shape) TypeError: 'int' object is not iterable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deep-rl-keras.