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

python3 中的bp.cy #49

Open
lsjAI opened this issue Jul 8, 2019 · 4 comments
Open

python3 中的bp.cy #49

lsjAI opened this issue Jul 8, 2019 · 4 comments

Comments

@lsjAI
Copy link

lsjAI commented Jul 8, 2019

python3/bc.py 运行 总是报错 'ConstNode' object has no attribute 'set_output'

@fyx18
Copy link

fyx18 commented Apr 7, 2020

我也是,请问解决了吗

@Xanyv
Copy link

Xanyv commented May 4, 2020

我也是的 解决了吗

@bluetropic
Copy link

bluetropic commented Nov 6, 2020

ConstNode不需要设置,output恒等1. 程序中Layer这个类里边的set_output(self, data): 中 for i in range(len(data)):
self.nodes[i].set_output(data[i]) 改为 for i in range(len(self.nodes)):
self.nodes[i].set_output(data[i]),其他的类似constnode爆出的错误,也是因为这个原因产生的,依次修改即可。

@ren1024pro
Copy link

main中的每层的node数设错了
if name == 'main':

net = Network([6, 4, 2])
参考之前的bp 和 fc应该是
net = Network([8, 3, 8])
这样是跑通的别的还不确认

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