Skip to content

MNIST 手写数字预测

本文将介绍如何使用 PyTorch 实现一个简单的手写数字识别模型。

首先,我们需要安装 PyTorch。请参考 PyTorch 配置 安装 PyTorch。

然后安装一些必要的包:

powershell
conda activate pytorch
conda install numpy matplotlib scikit-learn seaborn

打开 D:\Public\示例\MNIST-detection.ipynb, 选择 Python 3.10 (pytorch) 作为内核,即可运行。