文章大纲
多层感知机的从零开始实现
让我们尝试自己实现一个多层感知机。
为了与之前softmax回归( :numref:sec_softmax_scratch
)
获得的结果进行比较,
我们将继续使用Fashion-MNIST图像分类数据集
( :numref:sec_fashion_mnist
)。
import torch
from torch import nn
# from d2l import torch as d2l
import
微信扫一扫
让我们尝试自己实现一个多层感知机。
为了与之前softmax回归( :numref:sec_softmax_scratch
)
获得的结果进行比较,
我们将继续使用Fashion-MNIST图像分类数据集
( :numref:sec_fashion_mnist
)。
import torch
from torch import nn
# from d2l import torch as d2l
import
相关推荐