摘要: 一、 1、感知机可以描述为一个线性方程,用python的伪代码可表示为: sum(weight_i * x_i) + bias -> activation #activation表示激活函数,x_i和weight_i是分别为与当前神经元连接的其它神经元的输入以及连接的权重。bias表示当前神经元的输 阅读全文
posted @ 2018-08-24 23:53 python坚持者 阅读(271) 评论(0) 推荐(0) 编辑
摘要: (一)画出三点图实例(polt.py) import matplotlib.pyplot as plt #导入matplotlib模块里面的pyplot类,并取一个别名为plt dataset = [[1.2, 1.1], [2.4, 3.5], [4.1, 3.2], [3.4, 2.8], [5 阅读全文
posted @ 2018-08-24 12:58 python坚持者 阅读(1124) 评论(0) 推荐(0) 编辑