hanbt / learn_dl

Deep learning algorithms source code for beginners
Apache License 2.0
1.2k stars 988 forks source link

perceptron激活函数问题? #10

Open gewuxy opened 6 years ago

gewuxy commented 6 years ago

你好,为什么 return 1 if x > 0 else 0 这个函数可以成功,而 return 0 if x > 0 else 1 却训练失败呢?

hanbt commented 6 years ago

训练规则是根据激活函数推导出来的,如果激活函数变了,相应的训练规则也要跟着变。

gewuxy commented 6 years ago

这种激活函数的训练公式是怎么推导出来的? 我看了“线性单元和梯度下降”这一篇的推导,公式形式上是一致的