照清秋
2017-10-06 22:09
File "……", line 40, in <module>
ppn.fit(X,y)
File "……", line 28, in fit
self.w_[1:]+=update*Xi
ValueError: operands could not be broadcast together with shapes (5,) (2,)
我感觉我都是照抄的啊怎么会有这种bug??
Xi还是xi?要与前面的代码【for xi, target in zip(X, y)】中的xi相一致。
机器学习-实现简单神经网络
67033 学习 · 184 问题
相似问题