![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
神经网络
我要卷死诸位
这个作者很懒,什么都没留下…
展开
-
跟着莫烦学TensorFlow搭建神经网络(白痴随手笔记)001:安装及直线拟合
一、首先是在windows7上安装Tensorflow。本人参考了这位博主的文章,成功实现在windows7上安装TensorFlow。传送门:https://www.cnblogs.com/bxyan/p/6869237.html二、安装完后跟随B站莫烦Python教程进行学习。打开安装好的Python,选择新建文件,便可编辑自己的程序。然后在新建文档中输入以下程序:import tensorf...原创 2018-04-09 10:45:33 · 226 阅读 · 0 评论 -
跟着莫烦学TensorFlow搭建神经网络(白痴随手笔记)002:session会话控制
session为Python执行命令以及会话的控制模块。session的运用有两种方法,采用矩阵相乘例子来说明:1、方法一import tensorflow as tf matrix1=tf.constant([[3,3]]) matrix2=tf.constant([[2], [2]]) product=tf.matmul(matrix1,matrix...原创 2018-04-09 11:26:45 · 223 阅读 · 0 评论 -
跟着莫烦学TensorFlow搭建神经网络(白痴随手笔记)003:Variable变量
学习使用TensorFlow中的变量定义;import tensorflow as tf state=tf.Variable(0,name='counter')#定义一个变量初始值为0,变量名称为counter,用于计数 #print(state.name) one=tf.constant(1)#常量1 new_value=tf.add(state,one) update=tf.assign(...原创 2018-04-09 17:23:42 · 124 阅读 · 0 评论 -
跟着莫烦学TensorFlow搭建神经网络(白痴随手笔记)004:placeholder占位符
1、placeholder(TensorFlow provides a placeholder operation that must be fed with data on execution.)训练神经网络每次提供一个训练样本,如果每次迭代选取的数据通过常量表示的话,TensorFlow计算量会非常大。(每增加一个常量、在计算图中增加一个节点)占位符也可以解决这个问题。参考:点击打开链2、tf...原创 2018-05-03 14:48:11 · 344 阅读 · 0 评论