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

ValueError #7

Open
sunville opened this issue Jul 18, 2017 · 1 comment
Open

ValueError #7

sunville opened this issue Jul 18, 2017 · 1 comment

Comments

@sunville
Copy link

I use neat-8.0 version package.

I run the script like this:
./gym_solver.py --episodes=3 --generations=100 --num-cores=1 --max-steps=10

No matter what the max-steps I set I always get this error message in generation 1

Traceback (most recent call last):
File "./gym_solver.py", line 112, in
train_network(my_env)
File "./gym_solver.py", line 82, in train_network
pop.run(pe.evaluate, args.generations)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/neat/population.py", line 186, in run
fitness_function(population)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/neat/parallel.py", line 22, in evaluate
genome.fitness = job.get(timeout=self.timeout)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/pool.py", line 558, in get
raise self._value
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

@sunville
Copy link
Author

And this problem only happens in simulating 'Breakout-v0'

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