modestyachts / ARS

An implementation of the Augmented Random Search algorithm
Other
418 stars 103 forks source link

assert len(plasma_managers) >= 1 AssertionError #4

Closed jp18813100494 closed 6 years ago

jp18813100494 commented 6 years ago

default anyone know how to solve the problem?

hmania commented 6 years ago

It looks like you did not start Ray, the distributed execution engine. You first need to run the command

ray start --head --redis-port=6379 --num-workers=18 (18 or however many workers you want)

If you did run it, the function socket.gethostbyname might not return the right local_ip address (depending on the system you have). In that case, you should just copy paste the redis address returned by the "ray start" command into the python script.

jp18813100494 commented 6 years ago

@hmania Thank you very much.I solved my problem at your suggestion!However I met another problem in the next step!Can you help me? 1

hmania commented 6 years ago

It looks like you don't have enough memory. You could try giving the "count" variable in line 31 a smaller value, which would translate into a smaller shared noise table. Ideally you would want that value large to keep samples independent, but you should see if making it smaller solves your problem.

jp18813100494 commented 6 years ago

@hmania You are right.I solved the problem by change the variable "count" smaller!