CNN
避暑客
这个作者很懒,什么都没留下…
展开
-
解决 AttributeError: RefVariable object has no attribute _id(tf 版本低)
运行backpropagation.py,寻找 最小loss的代码```pythonimport tensorflow as tfw = tf.Variable(tf.constant(5, dtype=tf.float32))lr = 0.2epoch = 40for epoch in range(epoch): # for epoch 定义顶层循环,表示对数据集循环epoch次,此例数据集数据仅有1个w,初始化时候constant赋值为5,循环40次迭代。 with tf.Grad...原创 2020-06-03 19:03:43 · 3810 阅读 · 0 评论 -
FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is depr
problem statement:运行tensorflow 程序 出现如下提示:FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type. from ._conv import register_converters原创 2020-06-01 11:22:15 · 573 阅读 · 0 评论 -
LeNet-5源代码(详注)、mnist_data及论文
LeNet-5是论文Gradient-Based Learning Applied to Document Recognition(IEEE-1998)提出的一种用于手写体字符识别的卷积神经网络模型。源代码'''利用tensorflow实现的卷积神经网络来进行MNIST手写数字图像的分类。''' import numpy as npimport tensorflow as tf ...原创 2020-05-07 10:31:32 · 3059 阅读 · 0 评论