摘要:
Pytorch线性回归模拟 import torch from torch.utils.data import TensorDataset # 张量数据集 from torch.utils.data import DataLoader # 数据加载器 from torch import nn ## 阅读全文
posted @ 2026-01-03 16:59
xggx
阅读(0)
评论(0)
推荐(0)
摘要:
自动微分模块 1 多元线性公式 公式:y = wx + b w 的行对应样本特征的个数,列代表神经元个数 2 权重更新公式 w(新) = w(旧) - lr(学习率) * dw (权重的梯度,即损失函数对权重的偏导数) b(新) = b(旧) - lr(学习率) * db (偏置的梯度,即损失函数对 阅读全文
posted @ 2026-01-03 00:26
xggx
阅读(2)
评论(0)
推荐(0)

浙公网安备 33010602011771号