Skip to content
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

Errors Running Directly After Clone #6

Closed
Silent-Zebra opened this issue Jul 11, 2019 · 1 comment
Closed

Errors Running Directly After Clone #6

Silent-Zebra opened this issue Jul 11, 2019 · 1 comment

Comments

@Silent-Zebra
Copy link

I cloned the repository, ran cartpole_per.py, and got:

prioritized_memory.py:41: RuntimeWarning: divide by zero encountered in power
is_weight = np.power(self.tree.n_entries * sampling_probabilities, -self.beta)
prioritized_memory.py:42: RuntimeWarning: invalid value encountered in true_divide
is_weight /= is_weight.max()
Traceback (most recent call last):
File "cartpole_per.py", line 201, in
agent.train_model()
File "cartpole_per.py", line 117, in train_model
states = np.vstack(mini_batch[0])
File "AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\core\shape_base.py", line 283, in vstack
return _nx.concatenate([atleast_2d(_m) for _m in tup], 0)
ValueError: all the input array dimensions except for the concatenation axis must match exactly

I reran a few times, and the error always eventually occurs, though at varying lengths of time before it happens.

@Silent-Zebra
Copy link
Author

Apologies, I should have read before posting. Fix provided by stormont in this thread: #4

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

1 participant