😊你好,我是小航,一个正在变秃、变强的文艺倾年。
🔔笔记来自B站UP主Ele实验室的《小白也能听懂的人工智能原理》。
🔔本文讲解梯度下降和反向传播:能改,一起卷起来叭!
一、“挪”
二、“再挪”
三、梯度下降
我们对上述过程代码实现:豆豆数据集模拟:dataset.py
import numpy as np
def get_beans(counts):
xs = np.random.rand(counts)
xs = np.sort(xs)
ys = np.array([(0.7*x+(0.5-np.random.rand())/5+0.5) for x in xs])
return xs,ys
豆豆毒性分布如下:
相关代码仓库链接,欢迎Star:传送门