Neural Networks and Deep Learning 学习笔记(十一)
2016-07-23 18:56
393 查看
学习Udacity上的DeepLearning视频,第一个assignment是tensorflow官方git上example里的1_notmnist
结果为每个字母随机显示5副图片
Problem 1
Let’s take a peek at some of the data to make sure it looks sensible. Each exemplar should be an image of a character A through J rendered in a different font. Display a sample of the images that we just downloaded. Hint: you can use the package IPython.display.My Answer:
from IPython.display import Image import random def show_image(num_per_letter): root = 'notMNIST_large' for subroot in sorted(os.listdir(root)): fulldir = os.path.join(root,subroot) file = [os.path.join(fulldir,x) for x in random.sample(os.listdir(fulldir),3) if os.path.isfile(os.path.join(fulldir,x))] print(subroot+':') for name in file: display(Image(name)) show_image(5)
结果为每个字母随机显示5副图片
相关文章推荐
- CUDA搭建
- 稀疏自动编码器 (Sparse Autoencoder)
- 白化(Whitening):PCA vs. ZCA
- softmax回归
- 卷积神经网络初探
- TensorFlow人工智能引擎入门教程之九 RNN/LSTM循环神经网络长短期记忆网络使用
- TensorFlow人工智能引擎入门教程之十 最强网络 RSNN深度残差网络 平均准确率96-99%
- TensorFlow人工智能入门教程之十一 最强网络DLSTM 双向长短期记忆网络(阿里小AI实现)
- TensorFlow人工智能入门教程之十四 自动编码机AutoEncoder 网络
- TensorFlow人工智能引擎入门教程所有目录
- 如何用70行代码实现深度神经网络算法
- 近200篇机器学习&深度学习资料分享(含各种文档,视频,源码等)
- 安装caffe过程记录
- DIGITS的安装与使用记录
- 我对ltsm的学习,从rnn的问题讲起
- 图像识别和图像搜索
- 卷积神经网络
- 深度学习札记
- ubuntu14.04安装 资料
- ImageNet classification with deep convolutional neural network