Model-Based-RL
Model-Based-RL copied to clipboard
ModuleNotFoundError: No module named 'optimizer'
Hi, Hope you are doing well. I tried run this code, but I am getting following error. Please let me know what I need to do to fix it.
(VANILLA) shubham@shubham-VirtualBox:~/Model-Based-RL$ python3 main.py --config-file ./configs/inverted_pendulum.yaml
Traceback (most recent call last):
File "main.py", line 5, in
@aikkala by any chance can you add the "optimizer" file in the main branch? Thanks
Hello @amdee. I don't unfortunately have this project locally anymore, so if the optimizer file is missing from this repo, then I can't upload it. Perhaps you're able to reverse engineer the functionality. It most likely is just some wrapper around a torch optimizer.
@aikkala Thanks for the quick reply. I think I can reverse engineer the optimizer but I wasn't sure what it was doing especially when it calls the method .ask() and tell(), which I assume are methods. Would it be possible to give me insight into what the module optimizer is doing? Any info that you might think will help reverse engineer the module will be appreciated.
@amdee -- this time I wasn't so fast with the reply, sorry.
Now that you mentioned the ask and tell methods, I think that optimizer may have been a CMA-ES optimizer. Or perhaps it was a wrapper that provided an interface for both a CMA-ES and a torch optimizer. But the ask and tell methods point to a CMA-ES (or some other black box) optimizer, where ask method returns a bunch of solutions, and tell method expects a value (e.g. fitness function value) for those solutions.