Dataset之MNIST:MNIST(手写数字图片识别+csv文件)数据集简介、下载、使用方法之详细攻略

简介: Dataset之MNIST:MNIST(手写数字图片识别+csv文件)数据集简介、下载、使用方法之详细攻略

MNIST数据集简介


MNIS下手写体数字图片像素表示矩阵

image.png



     带有数字类别的train.csv、测试文件test.csv。每个手写体数字图像在这两份文件中都被首尾拼接为一个28*28=784维的像素向量,而且每个像素都使用[0,1]之间的灰度值来显示手写笔画的明暗程度。


参考文章:Dataset之MNIST:MNIST(手写数字图片识别+ubyte.gz文件)数据集简介、下载、使用方法(包括数据集增强)之详细攻略






1、train.csv


image.png



2、test.csv


image.png







MNIST数据集下载


MNIST(手写数字图片识别+csv文件)数据集下载https://download.csdn.net/download/qq_41185868/11015012




MNIST数据集使用方法


案例:DL之LiR&DNN&CNN:利用LiR、DNN、CNN算法对MNIST手写数字图片(csv)识别数据集实现(10)分类预测


The data files train.csv and test.csv contain gray-scale images of hand-drawn digits, from zero through nine.


Each image is 28 pixels in height and 28 pixels in width, for a total of 784 pixels in total. Each pixel has a single pixel-value associated with it, indicating the lightness or darkness of that pixel, with higher numbers meaning darker. This pixel-value is an integer between 0 and 255, inclusive.


The training data set, (train.csv), has 785 columns. The first column, called "label", is the digit that was drawn by the user. The rest of the columns contain the pixel-values of the associated image.


Each pixel column in the training set has a name like pixelx, where x is an integer between 0 and 783, inclusive. To locate this pixel on the image, suppose that we have decomposed x as x = i * 28 + j, where i and j are integers between 0 and 27, inclusive. Then pixelx is located on row i and column j of a 28 x 28 matrix, (indexing by zero).


For example, pixel31 indicates the pixel that is in the fourth column from the left, and the second row from the top, as in the ascii-diagram below.


Visually, if we omit the "pixel" prefix, the pixels make up the image like this:


000 001 002 003 ... 026 027

028 029 030 031 ... 054 055

056 057 058 059 ... 082 083

|   |   |   |  ...  |   |

728 729 730 731 ... 754 755

756 757 758 759 ... 782 783

The test data set, (test.csv), is the same as the training set, except that it does not contain the "label" column.


Your submission file should be in the following format: For each of the 28000 images in the test set, output a single line containing the ImageId and the digit you predict. For example, if you predict that the first image is of a 3, the second image is of a 7, and the third image is of a 8, then your submission file would look like:


ImageId,Label

1,3

2,7

3,8

(27997 more lines)

The evaluation metric for this contest is the categorization accuracy, or the proportion of test images that are correctly classified. For example, a categorization accuracy of 0.97 indicates that you have correctly classified all but 3% of the images.


 


相关文章
|
机器学习/深度学习 人工智能 数据库
【表面缺陷检测】表面缺陷检测数据集汇总
本文收集整理了16个表面缺陷检测相关的数据集,并对每个数据集的特点进行了简单的介绍。
【表面缺陷检测】表面缺陷检测数据集汇总
|
8月前
|
人工智能 Linux API
保姆级图文实战|OpenClaw阿里云/本地秒级部署+MiniMax M2.5接入步骤流程
2026年,AI智能体的落地核心已从“技术探索”转向“高效落地”,OpenClaw(Clawdbot)作为轻量化、高兼容的AI Agent框架,凭借容器化部署优势、灵活的技能扩展能力,成为衔接阿里云基础设施与MiniMax M2.5大模型的核心载体。MiniMax M2.5作为2026年新一代原生Agent生产级模型,采用混合专家(MoE)架构,总参数达2300亿却仅激活100亿参数推理,实现了性能与成本的双重突破,推理成本降至主流模型的1/10至1/20,搭配OpenClaw可实现自动化任务拆解、复杂指令执行、长文本处理等高阶功能,广泛适用于办公自动化、研报解析、代码开发等多场景。
2112 1
|
9月前
|
人工智能 NoSQL Redis
LangGraph 入门:用图结构构建你的第一个多智能体工作流
LangGraph 是面向多智能体系统的图编排框架,以有向状态图替代线性链式调用。通过节点(智能体)、边(条件/静态跳转)和类型化共享状态三者解耦,天然支持分支、循环、并行与汇合;内置检查点、原子状态更新与Reducer机制,保障一致性、可调试性与容错恢复能力。
3975 1
|
9月前
|
人工智能 API 开发者
90%开发者不知道!阿里云Coding Plan是什么?7.9元解锁AI编程
阿里云百炼Coding Plan是专为开发者打造的AI编程订阅服务,支持Qwen3.5/3-max/3-coder、Kimi K2.5、GLM-4.7等主流模型,适配Qwen Code、Claude Code等工具。Lite版首月仅7.9元,含固定月度调用额度,一键获取API Key即可接入使用。(239字)
3614 0
|
10月前
|
存储 机器学习/深度学习 人工智能
大模型应用:LangChain核心组件深度解析:llms与embeddings.3
LangChain是构建大语言模型(LLM)应用的开源框架,核心包含LLMs(文本生成/对话)与Embeddings(文本向量化/语义检索)两大组件。其典型RAG架构实现“查询嵌入→向量检索→Prompt构建→LLM生成”闭环,支持文档问答等智能应用。(239字)
1690 8
|
人工智能 缓存 监控
MCP零基础学习(6)|与大型语言模型(LLM)的深度融合
本文是MCP系列教程的进阶篇,重点讲解如何将MCP与各类大语言模型深度集成,覆盖本地模型(Ollama、vLLM)和在线服务(OpenAI、DeepSeek)的接入方法,并详解提示词模板设计与上下文管理技巧。通过具体代码示例和架构解析,帮助开发者构建灵活、高效的AI应用系统,实现更智能的模型调度与资源利用。
如何绘制PAD图和N-S图(详细步骤)
如何绘制PAD图和N-S图(详细步骤)
5055 0