GithubHelp home page GithubHelp logo

Comments (5)

AlirezaShamsoshoara avatar AlirezaShamsoshoara commented on August 24, 2024

@syue0225, Did you change any variables? How many UAVs you have? Keep track of the X and Y Matrices, then see what are the shapes of variables and what values they have?
It is better to do it in debug mode.

from reinforcement_learning_team_q_learnig_marl_multi_agent_uav_spectrum_task.

digaamberdhamija avatar digaamberdhamija commented on August 24, 2024

The issue is in lines 145, 148, 151, and 154 of the file csi.py. The transpose operation to the second argument of np.multiply should not be there as it will produce an output with the wrong dimensions. I have checked and verified the results.

from reinforcement_learning_team_q_learnig_marl_multi_agent_uav_spectrum_task.

purbe avatar purbe commented on August 24, 2024

when i run it ,it have some problems File "E:/python_code/Reinforcement_Learning_Team_Q_learnig_MARL_Multi_Agent_UAV_Spectrum_task-main/Reinforcement_Learning_Team_Q_learnig_MARL_Multi_Agent_UAV_Spectrum_task-main/main.py", line 174, in csi_coef = get_csi(num_UAV, loc_dict, X_Mat[Step, Eps, :], Y_Mat[Step, Eps, :]) File "E:\python_code\Reinforcement_Learning_Team_Q_learnig_MARL_Multi_Agent_UAV_Spectrum_task-main\Reinforcement_Learning_Team_Q_learnig_MARL_Multi_Agent_UAV_Spectrum_task-main\csi.py", line 158, in get_csi csi_h[:, source_uav] = np.squeeze(h_S_uav) ValueError: could not broadcast input array from shape (2,2) into shape (2)

could you help me?

are you able to rectify the error, bcz i'm facing the same issure? plz help me

from reinforcement_learning_team_q_learnig_marl_multi_agent_uav_spectrum_task.

purbe avatar purbe commented on August 24, 2024

The issue is in lines 145, 148, 151, and 154 of the file csi.py. The transpose operation to the second argument of np.multiply should not be there as it will produce an output with the wrong dimensions. I have checked and verified the results.

hey can you help me? after removing transpose still getting the same error. does your code working?

from reinforcement_learning_team_q_learnig_marl_multi_agent_uav_spectrum_task.

1234Crystal avatar 1234Crystal commented on August 24, 2024

Traceback (most recent call last):
File "E:/Reinforcement_Learning_Team_Q_learnig_MARL_Multi_Agent_UAV_Spectrum_task-main/main.py", line 272, in
next_state_index=next_state_index, task_diff=task_diff, qVal=qVal)
File "<array_function internals>", line 6, in savez
File "D:\Anaconda3\envs\python37\lib\site-packages\numpy\lib\npyio.py", line 618, in savez
_savez(file, args, kwds, False)
File "D:\Anaconda3\envs\python37\lib\site-packages\numpy\lib\npyio.py", line 715, in _savez
zipf = zipfile_factory(file, mode="w", compression=compression)
File "D:\Anaconda3\envs\python37\lib\site-packages\numpy\lib\npyio.py", line 112, in zipfile_factory
return zipfile.ZipFile(file, *args, **kwargs)
File "D:\Anaconda3\envs\python37\lib\zipfile.py", line 1240, in init
self.fp = io.open(file, filemode)
FileNotFoundError: [Errno 2] No such file or directory: '\data\Out_greedy_Size_10_Run_0_Eps_200_Step_30000.npz'

The file doesn't have Out_greedy_Size_10_Run_0_Eps_200_Step_30000.npz,so what's the problem?Can you help me?

from reinforcement_learning_team_q_learnig_marl_multi_agent_uav_spectrum_task.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.