kangcp / qfnet

《Power Allocation in Multi-cell Networks Using Deep Reinforcement Learning》论文复现

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: 'Network' object has no attribute 'BSs'

tangtangsiqi opened this issue · comments

File "C:/Users/16664/Desktop/论文_daily/11月4日/qfnet-master/main.py", line 100, in
create_only_q()
File "C:/Users/16664/Desktop/论文_daily/11月4日/qfnet-master/main.py", line 53, in create_only_q
ql.start('1', epoch=20, iteration=64, only_q=True)
File "C:\Users\16664\Desktop\论文_daily\11月4日\qfnet-master\qlearning.py", line 264, in start
for i in range(self.net.BSs):
AttributeError: 'Network' object has no attribute 'BSs'

there is a problem when i try to run the main.py, how to solve the problem?

File "C:/Users/16664/Desktop/论文_daily/11月4日/qfnet-master/main.py", line 100, in
create_only_q()
File "C:/Users/16664/Desktop/论文_daily/11月4日/qfnet-master/main.py", line 53, in create_only_q
ql.start('1', epoch=20, iteration=64, only_q=True)
File "C:\Users\16664\Desktop\论文_daily\11月4日\qfnet-master\qlearning.py", line 264, in start
for i in range(self.net.BSs):
AttributeError: 'Network' object has no attribute 'BSs'

there is a problem when i try to run the main.py, how to solve the problem?
I encountered the same problem as you, how do you solve it

Facing the same issue, did anyone find a way to solve it?
Edit 1: was able to make the program run by replacing net.BSs with net.expectBS in file qlearning.py, but is it technically the right thing to do?

define self.net.BSs=32 ,the problem will be solved。

Facing the same issue, did anyone find a way to solve it? Edit 1: was able to make the program run by replacing net.BSs with net.expectBS in file qlearning.py, but is it technically the right thing to do?

I guess it the right way since we're doing training over several subcarriers and base stations. net.expectBS is the number of base stations.