基于线性回归实现手写数字识别

这篇博客介绍了如何从官网下载并处理MNIST数据集,通过创建input_data.py文件来导入数据。接着,文章详细阐述了利用线性回归算法进行手写数字识别的步骤,包括数据预处理和模型构建。
摘要由CSDN通过智能技术生成

一、关于数据集

官网 上下载并解压数据集


第一步、下载得到的是四个压缩文件。

将这四个压缩文件全部进行解压,得到下列一共八个文件,并将这个文件夹改名为MNIST_data,之后将这个文件夹放到你的项目里。


第二步、新建一个.py文件,起名为input_data.py

将下面的代码复制粘贴到input_data.py中

# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
#
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值