TesfayZ / CCM_MADRL_MEC

The source code for the paper titled Combinatorial Client-Master Multiagent Deep Reinforcement Learning for Task Offloading in Mobile Edge Computing
57 stars 6 forks source link

代码运行报错 #1

Open SuperLuckyStar666 opened 6 months ago

SuperLuckyStar666 commented 6 months ago

您好,我是一名新手,我在运行run.py的时候出现 InfdexofResult = sys.argv[1] # set run runnumber for indexing results, IndexError: list index out of range,请问是什么原因呢?

TesfayZ commented 6 months ago

Run it as Python run.py 0

See read me for more details. To run more experiments, 10 for example, run it as Python run.py 0 Python run.py 1 Python run.py 2 . . .Python run.py 10.

Then change the number of runs to 10 in the plotresult.py.

On Thu, 14 Mar 2024, 12:58 lingx666, @.***> wrote:

您好,我是一名新手,我在运行run.py的时候出现 InfdexofResult = sys.argv[1] # set run runnumber for indexing results, IndexError: list index out of range,请问是什么原因呢?

— Reply to this email directly, view it on GitHub https://github.com/TesfayZ/CCM_MADRL_MEC/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANZZ27647DVL55N4YY2KFOLYYGNH7AVCNFSM6AAAAABEWB2JJWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE4DMMZSGA4DAMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

TesfayZ commented 6 months ago

Please see the read me file or how the SLURM file is organized.

Python run.py 0 for single run.

Continue as Python run.py 1, Python run.py 2 for multiple runs. Don't forget to adjust the plot3.py to the number of runs.

SuperLuckyStar666 commented 6 months ago

Dear author, after reading the read me file I still don't understand how to run your program, I use pycharm software, and run your run.py directly without result, I am still a beginner, can you tell me in detail how to run your program?Thank you so much!

TesfayZ commented 6 months ago

Hi,

Could you please show me a copy or screenshot of how you run it? And the errors encountered.

Also don't forget to install packages when prompted if that's the case.

On Mon, 25 Mar 2024, 14:33 lingx666, @.***> wrote:

Dear author, after reading the read me file I still don't understand how to run your program, I use pycharm software, and run your run.py directly without result, I am still a beginner, can you tell me in detail how to run your program?Thank you so much!

— Reply to this email directly, view it on GitHub https://github.com/TesfayZ/CCM_MADRL_MEC/issues/1#issuecomment-2018143748, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANZZ27ZECPLF7C7EY6QWHVDY2AYTXAVCNFSM6AAAAABEWB2JJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJYGE2DGNZUHA . You are receiving this because you commented.Message ID: @.***>

SuperLuckyStar666 commented 6 months ago

Hello author, due to the configuration of my computer environment, I was unable to run such a large program locally. I have reduced the MAX-EPISODES and NUMBER of EVENTS parameters, and the program can now run. Thank you very much for your reply.

TesfayZ commented 6 months ago

Glad to hear it! Uncomment the last lines in CCM-MADRL.py to see results printed on the screen as it trains. Don't hesitate to contact me if you have any questions.

On Wed, 27 Mar 2024, 03:17 lingx666, @.***> wrote:

Hello author, due to the configuration of my computer environment, I was unable to run such a large program locally. I have reduced the MAX-EPISODES and NUMBER of EVENTS parameters, and the program can now run. Thank you very much for your reply.

— Reply to this email directly, view it on GitHub https://github.com/TesfayZ/CCM_MADRL_MEC/issues/1#issuecomment-2021849077, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANZZ273W2QG2DICMLCNGWYLY2I25DAVCNFSM6AAAAABEWB2JJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRRHA2DSMBXG4 . You are receiving this because you commented.Message ID: @.***>