JeffChau0503

Results 3 comments of JeffChau0503

我用了楼上的方法,发现依然无效啊 我用的是python3

发送自 Windows 10 版邮件应用 十分感谢你的回复! 我问题已经解决了,我是用2to3找到了其中的错误。 再次感谢! ________________________________ 发件人: 徐昭清 发送时间: Monday, March 26, 2018 7:38:26 AM 收件人: hanbt/learn_dl 抄送: JeffChau0503; Author 主题: Re: [hanbt/learn_dl] perceptron.py 中有错误 (#18) Hi, 你可以参考我的解决方案https://github.com/xuzhaoqing/MachineLearning/blob/master/src/deeplearning/py3.x/perceptron.py...

return self.activator( reduce(lambda a, b: a+b, [x_w[0] * x_w[1] for x_w in zip(input_vec, self.weights)], 0.0) + self.bias)