danielwillemsen / MAMBPO

DecentralizedLearning
21 stars 1 forks source link

cannot find SAC, DegradedSim in analyze_log.py #6

Open flammingRaven opened 3 years ago

flammingRaven commented 3 years ago

Hi, I really appreciate your work!

After I downloaded the code, I can run run_experiment.py and render the environment, but cannot successfully run analyze_log.py. There are 2 classes not found, SAC in 'algs.sac', and DegradedSim in 'algs.models'

The error is like: ModuleNotFoundError: No module named 'decentralizedlearning.algs.sac'

Please give me some hints, Thank you in advance!

danielwillemsen commented 3 years ago

Hi, thanks for your question.

This is my mistake, SAC and DegradedSim are old classes that weren't used anymore for the final paper. The code still hasn't been cleaned up fully, and this must have slipped through. I just merged some further cleaning that I already did locally but didn't push yet. This should fix it, if not, let me know!

flammingRaven commented 3 years ago

Hi, thanks for your help and further cleanup of the code, such errors were solved when I run 'analyze_log.py' again. But unfortunately, I found some other errors, mostly about the "file not found error", like:

`FileNotFoundError: [Errno 2] No such file or directory: 'simple_tag_coopcorr2.p'

I firstly run 'run_experiment.py' and it gave me just 2 files under the path: '.\bin\logs\mambpo_test.log' and '.\bin\logs\mambpo_test.p'. These 2 file names are not used in the 'simple_tag' part of "analyze_log.py", in which the name is 'coopcorr2' instead.

So I wonder where I can define and add some code about these abovementioned file names used for the output? Thanks a lot!