Giter Site home page Giter Site logo

frooooooo / mnist-cifar10 Goto Github PK

View Code? Open in Web Editor NEW
13.0 0.0 5.0 213 KB

使用sklearn库实现KNN和SVM对MNIST数据分类;使用TensorFlow实现BP,CNN,LeNet,AlexNet,VGGNet,InceptionNet,ResNet,并对MNIST和CIFAR10数据集进行分类

Python 100.00%

mnist-cifar10's Introduction

MNIST-CIFAR10

简介

环境

  • 语言:Python 3.7
  • 库:TensorFlow 2.1, numpy, matplotlib, sklearn, matplotlib
  • IDE:pycharm 2020.1

文件清单

  • read_data.py:读取MNIST数据集数据,存入numpy数组;两个show打头的函数可以显示读取的数据集图片
  • knn.py:使用KNN算法对MNIST数据集进行分类和模型评估,并随机输出25张错误预测样本
  • svm.py:使用SVM算法对MNIST数据集进行分类和模型评估
  • result.py:对不同参数的模型评估指标进行可视化
  • cnn.py:定义了数据与处理函数,可以载入MNIST和CIFAR10两种数据集;定义了acc/loss可视化函数;定义了各种神经网络
  • cnn-mnist.py:使用BP网络,自定义单卷积层CNN和LeNet对MNIST数据集进行分类并输出acc/loss可视化图
  • cnn-cifar10.py:使用所有定义的神经网络对CIFAR10数据集进行分类并输出acc/loss可视化图
  • data:存放mnist数据集的文件夹

部分结果展示

  • KNN分类结果

knn result

  • 不同核函数SVM分类结果

svm result

  • 单层卷积神经网络在MNIST数据集上的分类准确率

cnn mnist result

  • VGGNet在CIFAR10数据集上的分类准确率

vggnet cifar10 result

  • ResNet在CIFAR10数据集上的分类准确率

resnet cifar10 result

注意事项

mnist-cifar10's People

Contributors

frooooooo avatar

Stargazers

 avatar  avatar Yao Wu avatar  avatar  avatar  avatar  avatar Nord avatar huang xu avatar Yang Xu avatar Dapeng Zhang avatar SRIp-neV avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.