jjzgeeks / FL-DLT3

Exploring Deep Reinforcement Learning-Assisted Federated Learning for Online Resource Allocation in Privacy-Preserving EdgeIoT
MIT License
18 stars 2 forks source link

Some Problem about code #1

Open 2307856817 opened 1 year ago

2307856817 commented 1 year ago

Hello sir, I am a postgraduate student in China, my research area is federated learning and resource allocation and I am very interested in your approach. I encountered a problem when running your code locally, it prompted ModuleNotFoundError: No module named 'common.initialize' 1663055335305(1)

And in the file common/policy_networks.py there may be some issue with " from .initialize import * "

Could you please help me with this problem?

jjzgeeks commented 1 year ago

Thank you for pointing out this issue, the initialize.py was attached to common file.

gummarekula commented 3 months ago

respected sir, i am a research scholar, i am interested in federated learning. while trying to run this code, i am facing this problem. Installed reacher, even i am finding this issue and i did not find the code reacher in this folder. So, please give me solution.

error i am getting like this:

from reacher import Reacher # Env ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ImportError: cannot import name 'Reacher' from 'reacher' (unknown location)

jjzgeeks commented 3 months ago

respected sir, i am a research scholar, i am interested in federated learning. while trying to run this code, i am facing this problem. Installed reacher, even i am finding this issue and i did not find the code reacher in this folder. So, please give me solution.

error i am getting like this:

from reacher import Reacher # Env ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ImportError: cannot import name 'Reacher' from 'reacher' (unknown location)

Hi, in fact, reacher is redundant, you can delete the "from reacher import Reacher" line. If you want to use reacher, you can install it through the command: pip install reacher

gummarekula commented 2 months ago

Thank you sir. I will try as you said.

On Mon, Mar 25, 2024, 4:17 PM Jingjing Zheng @.***> wrote:

respected sir, i am a research scholar, i am interested in federated learning. while trying to run this code, i am facing this problem. Installed reacher, even i am finding this issue and i did not find the code reacher in this folder. So, please give me solution.

error i am getting like this:

from reacher import Reacher # Env ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ImportError: cannot import name 'Reacher' from 'reacher' (unknown location)

Hi, in fact, reacher is redundant, you can delete the "from reacher import Reacher" line. If you want to use reacher, you can install it through command: pip install reacher

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