Skip to content

Error in 4-R2D2-Single #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ghost opened this issue May 12, 2021 · 0 comments
Open

Error in 4-R2D2-Single #2

ghost opened this issue May 12, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented May 12, 2021

Hi,

I ran your code in 4-R2D2-Single, and got:
C:\POMDP\4-R2D2-Single\memory.py:88: RuntimeWarning: invalid value encountered in true_divide
prior_mean = abs_td_error_sum / lengths_burn
Traceback (most recent call last):
File "train.py", line 124, in
main()
File "train.py", line 100, in main
batch, indexes, lengths = memory.sample(batch_size)
File "C:\POMDP\4-R2D2-Single\memory.py", line 104, in sample
indexes = np.random.choice(range(len(self.memory_probability)), batch_size, p=probability)
File "mtrand.pyx", line 928, in numpy.random.mtrand.RandomState.choice
ValueError: probabilities contain NaN

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants