
tensorflow
文章平均质量分 74
luoganttcc
微信:luogantt2
展开
-
tensorflow 进阶(一)------softmax回归
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Mar 22 22:15:25 2018 @author: luogan """ from tensorflow.examples.tutorials.mnist import input_data mnist=input_data.read_data_sets...转载 2018-03-22 23:20:15 · 300 阅读 · 0 评论 -
cifar-10 cnn 分类
代码链接 原文链接 github链接 正确率有0.7左右原创 2018-03-26 17:45:31 · 619 阅读 · 0 评论 -
tensorflow 中 VALID 和 SAME
import tensorflow as tf inp = tf.Variable(tf.random_normal([1,5,5,5])) fil = tf.Variable(tf.random_normal([3,3,5,2])) op = tf.nn.conv2d(inp, fil, strides=[1, 2, 2, 1], padding='VALID') op1 = tf.n...原创 2018-03-25 17:05:11 · 349 阅读 · 0 评论 -
tf.reshape()
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Mar 24 16:35:11 2018 @author: luogan """ ''' from tensorflow.examples.tutorials.mnist import input_data mnist=input_data.read_data_...原创 2018-03-25 16:54:19 · 801 阅读 · 0 评论 -
VALID SAME
区别SAME和VALID VALID input = tf.Variable(tf.random_normal([1,5,5,5])) filter = tf.Variable(tf.random_normal([3,3,5,1])) op = tf.nn.conv2d(input, filter, strides=[1, 1, 1, 1], padding='VALID') ...转载 2018-03-24 19:19:27 · 192 阅读 · 0 评论 -
tensorflow 进阶 五 ---TensorFlow conv2d原理及实践
tf.nn.conv2d(input, filter, strides, padding, use_cudnn_on_gpu=None, data_format=None, name=None) 官方教程说明: 给定四维的input和filter tensor,计算一个二维卷积 Args: input: A Tensor. type必须是以下几种类型之一: half, float32, f...转载 2018-03-24 19:16:51 · 1000 阅读 · 0 评论 -
tensorflow 进阶(四)---CNN
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Mar 22 22:15:25 2018 @author: luogan """ from tensorflow.examples.tutorials.mnist import input_data mnist=input_data.re转载 2018-03-23 18:25:11 · 252 阅读 · 0 评论 -
tensorflow 进阶(三),BP神经网络之两层hidden_layer
本文与上一篇文章有一点不同,就是中间的隐藏层由一层变成两层,在神经网络搭建的过程中,曾出现一点问题,就是正确率图突然变成0.11,通过调整隐藏节点的数量和W2的初值,正确率达到0.97,不如只有一层神经网络的结果 神经网络并不是越深越好 神经网络的结构应当接近与橄榄型 对于ML而言,不宜多于五层 #!/usr/bin/env python...原创 2018-03-23 13:45:35 · 4533 阅读 · 0 评论 -
tensorflow 进阶(二),BP神经网络
这是一个三层的神经网络,只含有一个隐藏层.正确率有98% #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Mar 22 22:15:25 2018 @author: luogan """ from tensorflow.examples.tutorials.mnist import input_da...转载 2018-03-23 10:27:28 · 2088 阅读 · 0 评论 -
tensorflow 英文文档
英文 中文原创 2018-08-28 12:35:58 · 446 阅读 · 0 评论