Open syue0225 opened 3 years ago
@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.
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.
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
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?
Traceback (most recent call last):
File "E:/Reinforcement_Learning_Team_Q_learnig_MARL_Multi_Agent_UAV_Spectrum_task-main/main.py", line 272, in
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?
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?