MNIST 数据集可视化代码
来源:互联网 发布:navicat linux 破解 编辑:程序博客网 时间:2024/05/15 05:09
写一个matlab小程序将mnist数据集可视化,将以下代码命名为image_visualization 并放在 $caffe_root/data/mnist/ 下,{独立运行,不必编译caffe,但是要提前Linux下下载数据}
clear;clc;clear all;image_file_name='t10k-images-idx3-ubyte';index_filename='t10k-labels-idx1-ubyte';fid1=fopen(image_file_name,'rb');fid2=fopen(index_filename,'rb');images_data=fread(fid1,'uint8');index_data=fread(fid2,'uint8');fclose(fid1);fclose(fid2);images_data=images_data(17:end);index_data=index_data(9:end);image_buffer=zeros(28,28);for k=1:144:length(images_data)/28/28 figure(144); for t=1:144 image_buffer=reshape(images_data((k+t-2)*28*28+1:(k+t-1)*28*28),28,28); subplot(12,12,t); imshow(uint8(image_buffer)'); title(num2str(index_data(k+t-1))); end pause;end
结果如图(100个数,源码是144个数,未贴出)
0 0
- MNIST 数据集可视化代码
- caffe(三):MNIST数据集可视化
- mnist数据集可视化(npy格式)
- MNIST数据可视化
- MNIST数据可视化
- TensorFlow 下 mnist 数据集的操作及可视化
- 学习笔记TF056:TensorFlow MNIST,数据集、分类、可视化
- Tensorflow MNIST 数据集测试代码入门
- MNIST 可视化
- 深度学习框架Caffe学习笔记(4)-MNIST数据集转换成可视化图片
- 【Python | TensorBoard】用 PCA 可视化 MNIST 手写数字识别数据集
- 深度学习caffe实战笔记(13)利用MATLAB可视化mnist数据集
- tensorflow MNIST数据集的训练(线性模型)及tensorboard计算结果可视化
- 第一个network的代码实现基于mnist数据集
- 一般knn算法识别mnist数据集(代码)
- MNIST数据集规则化
- mnist手写数据集
- MNIST数据集分析
- c# 声明一个对象意味着什么
- The Highest Mark hdu 5501 贪心+背包
- 练习用规范的语句写C语言和shell
- setprecision、fixed、showpoint的用法总结(经典!!超经典!!)
- 给出字符串
- MNIST 数据集可视化代码
- 洛谷 P1629 邮递员送信
- HTML学习笔记
- 运用@Transactional,自己抛出异常时不会回滚的原因
- x^1 + x ^2 +...+x ^n = m 求x
- 例题5-4 反片语 UVa156
- 方法链编程风格
- ed编辑器--适用于shell脚本内编辑文件的最最简单编辑器
- EasyUI的DataGrid 的打印导出功能