- 0
- 0
- 约3.42千字
- 约 5页
- 2021-12-09 发布于北京
- 举报
Heres my solution to the last quiz:
class Linear(Node):
def __init__(self, X, W, b):
# Notice the ordering of the inputs passed
to the
# Node constructor.
Node.__init__(self, [X, W, b])
def forward(self):
X = self.inbound_nodes[0].value
W = self.inbound_nodes[1].value
b = self.inbound_nodes[2].value
self.value = np.dot(X, W) + b
Nothing fancy in my solution. I pulled the value of the X, W and b
from their respective inputs. I used np.dot to handle the matrix
multiplication.
Neural
您可能关注的文档
最近下载
- 主题06 野生动物保护 (题型滚动综合训练,话题词汇+时文阅读+高考真题+模拟精练)(教师版).pdf VIP
- (2026年)中医体质学说与体质辨识PPT课件.pptx
- 《地下矿智能开采技术》课件——地压管理.ppt VIP
- 主题03 科技发展(题型滚动综合训练,话题词汇+时文阅读+高考真题+模拟精练)(教师版).pdf VIP
- 2026-2027学年度第一学期高二年级入学考试物理试题.pdf VIP
- 《地下矿智能开采技术》课件——任务3.计算矿石的损失与贫化.ppt VIP
- 《AI通识》学习资料-题库-温州市继续教育-一般公需课.docx VIP
- 农村水利工程运行管理问题和措施.doc VIP
- 2026年《中国慢性胆囊炎胆石症诊疗指南(2026版)》.docx VIP
- 《地下矿智能开采技术》课件——矿石损失与贫化.ppt VIP
原创力文档

文档评论(0)