摘要: 本篇借鉴了这篇文章,如果有兴趣,大家可以看看:https://blog.csdn.net/geter_CS/article/details/84857220 1、交叉熵:交叉熵主要是用来判定实际的输出与期望的输出的接近程度 2、CrossEntropyLoss()损失函数结合了nn.LogSoftm 阅读全文
posted @ 2020-06-26 13:47 九叶草 阅读(17860) 评论(0) 推荐(0)
摘要: 看pytorch中文文档摘抄的笔记。 class torch.optim.SGD(params, lr=, momentum=0, dampening=0, weight_decay=0, nesterov=False)[source] 实现随机梯度下降算法(momentum可选)。 Nestero 阅读全文
posted @ 2020-06-26 11:53 九叶草 阅读(43035) 评论(0) 推荐(3)