Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tangtangsiqi opened this issue Nov 6, 2019 · 4 comments
Open

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

tangtangsiqi opened this issue Nov 6, 2019 · 4 comments

Comments

@tangtangsiqi
Copy link

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?

@Luo-Li
Copy link

Luo-Li commented Dec 12, 2019

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

@biplavc
Copy link

biplavc commented Sep 27, 2020

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?

@zyh768
Copy link

zyh768 commented Oct 14, 2022

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

@armanruet
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants