您的位置: 首页 > 文章 > pytorch学习笔记2--梯度下降的介绍 pytorch学习笔记2--梯度下降的介绍 分类: 文章 • 2025-05-30 16:46:58 梯度下降 给定y=x2∗sinxy=x^2*sinxy=x2∗sinx它的导数:y′=2xsinx+x2cosxy'=2xsinx + x^2cosxy′=2xsinx+x2cosx则梯度下降对x进行更新:x′=x−lr∗Δxx'=x-lr * \Delta xx′=x−lr∗Δx 噪声 example optimize