Comments (3)
python3 不支持lambda输入tuple
from learn_dl.
修改三个地方:
1 lambda (x,w):x*w 替换成 lambda x : x[0]*x[1]
2 reduce 增加引用 from functools import reduce
3 梯度更新map返回的不是list,修改成:self.weights = [w + rate * delta * x for (x, w) in zip(input_vec, self.weights)]
from learn_dl.
fixed
from learn_dl.
Related Issues (20)
- 关于文章以及代码被非授权利用 HOT 1
- 很不错的系列文章,请问有后续吗? HOT 3
- 复制黏贴没有公式的,感觉不好
- 当输入参数超过1,线性单元就计算不出来了
- 零基础入门深度学习(6) - 长短时记忆网络(LSTM) 问题
- 零基础入门深度学习(2) - 为什么训练次数越多越不准了 HOT 1
- 零基础入门深度学习(3) - 神经网络和反向传播算法 向量编程 计算输出层的delta时为何重复计算?
- rnn.py中梯度检查中的epsilon无论取什么值,算出来的梯度都是一样的 HOT 1
- 零基础入门深度学习(4) - 卷积神经网络 backward的问题
- python3 中的bp.cy HOT 4
- matplotlib does not support generators as input 怎么办
- mnist.py Loader类加载错误 HOT 1
- Error in lstm.py
- CNN梯度检测
- 关于全连接网络的反向传播的疑问 HOT 2
- 作业部落中的笔记图片无法显示 HOT 11
- 强化学习 作业部落
- 向量化实现全连接层是否有错
- 关于神经网络损失函数的疑问
- matplotlib does not support generators as input in linear_unit.py HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learn_dl.