TensorFlow学习笔记
qq_43161793
这个作者很懒,什么都没留下…
展开
-
卷积神经网络——解决参数太多的问题
卷积函数tf.nn.conv2d(input,filter,strides,padding,use_cudnn_on_gpu=None,name=None)#input:[batch,in_height,in_width,in_channels]#filter:[filter_height,filter_width,in_channels,out_channels]原创 2019-11-05 20:49:26 · 1762 阅读 · 0 评论 -
多层神经网络——解决非线性问题
1.生成样本集2.生成1000个数据并且显示在图中1.plt.scatter的用法说明:点的表示符号、颜色、X轴、Y轴的标识等等2.np.random.randn()2.1np.random.randn()3.np.eye() :将数据转换成数组,也可使one_hot类型aa=[np.argmax(l) for l in train_Ycolors=['r' if l==0 el...原创 2019-10-27 20:12:29 · 1470 阅读 · 0 评论 -
TensorFlow 第六章
notions:单个神经元、BP算法(误差反向传播算法):learning rate激活函数【了解定义域、值域、图形】softmax算法、损失函数1.激活函数Sigmoid函数tf.nn.sigmoid(x,name=None)tanh函数:tf.nn.tanh(x,name=None)Sigmoid与tanh存在饱和问题,所以输入不能够无限大ReLU函数:运算简单,但正向传播中负值...原创 2019-10-18 11:06:14 · 121 阅读 · 0 评论 -
Tensorflow编程基础
with sessionwith session 包括close()with tf.session() as sess: print ("相加:% i" % sess.run(a+b))注入机制指定GPU运算1.with …device2.tf.ConfigProto保存载入模型建立saver,通过saver的save、restoresaver.tf.train.Saver(...原创 2019-10-09 20:24:59 · 131 阅读 · 0 评论