machine-learning
xiong_hui
这个作者很懒,什么都没留下…
展开
-
Tensorflow入门 mnist手写数字识别
代码:# -*- coding: utf-8 -*-import tensorflow as tf#导入input_data用于自动下载和安装MNIST数据集from tensorflow.examples.tutorials.mnist import input_datamnist = input_data.read_data_sets("D:/Users/xyh/Desktop/MNIST_转载 2017-12-04 15:05:22 · 289 阅读 · 0 评论 -
cnn的卷积层和池化层
卷积层和池化层卷积神经网络(CNN)由输入层、卷积层、激活函数、池化层、全连接层组成,即INPUT-CONV-RELU-POOL-FC(1)卷积层:用它来进行特征提取,如下:输入图像是32*32*3,3是它的深度(即R、G、B),卷积层是一个5*5*3的filter(感受野),这里注意:感受野的深度必须和输入图像的深度相同。通过一个filter与输入图像的卷积可以得到一个28*28*1的特征图,上...转载 2018-03-05 14:37:02 · 8691 阅读 · 0 评论 -
打开tensorboard,得到图片
测试代码:import tensorflow as tfin1 = tf.constant([1.,2.],name='in1')in2 = tf.Variable(tf.random_normal([2]),name='in2');out = tf.add(in1,in2,name='add')writer = tf.summary.FileWriter(r'D:\Users\Doc...原创 2018-05-24 15:21:54 · 4483 阅读 · 0 评论