CNN神经网络
美好的像个天使
这个作者很懒,什么都没留下…
展开
-
ResNet_v2-50
slimimport collectionsslim.arg_scope通过slim.arg_scope将slim.conv2d的几个默认参数设置好arg_scope 的功能:用来定义某些函数的参数默认值slim.max_pool2dslim.batch_normend_points = slim.utils.convert_collection_to_dict(end_points...原创 2019-07-05 21:02:17 · 1239 阅读 · 0 评论 -
错误总结
TypeError: The value of a feed cannot be a tf.Tensor object. Acceptable feed values include Python scalars, strings, lists, numpy ndarrays, or TensorHandles.For reference, the tensor object was Tensor...原创 2019-07-01 22:05:22 · 429 阅读 · 2 评论 -
函数比较(1):tf.nn.sparse_softmax_cross_entropy_with_logits 与 tf.nn.softmax_cross_entropy_with_logits
一、tf.nn.sparse_softmax_cross_entropy_with_logitstf.nn.sparse_softmax_cross_entropy_with_logits(_sentinel=None,labels=None,logits=None,name=None)labels:为样本的真实标签, shape为[batch_size],每一个值∈[0,num_cl...转载 2019-06-26 18:49:14 · 601 阅读 · 0 评论 -
Tensorflow加载数据的三种方式
tensorflow作为符号编程框架,需要先构建数据流图,再读取数据,然后再进行训练。tensorflow提供了以下三种方式来加载数据:预加载数据(preloaded data):在tensorflow图中定义常量或变量来保存所有数据填充数据(feeding):Python产生数据,再把数据填充到后端从文件中读取数据(reading from file):通过队列管理器从文件中读取数据下面...转载 2019-07-08 10:29:52 · 904 阅读 · 0 评论 -
错误总结:OneHotEncoder
OneHotEncoder 中categorical_features代表类别属性的索引数值,n_values代表categorical_features中每个属性含有多少个类别toarray()是集合转数组的意思OnehotEncoder在实际应用中的理解: https://blog.csdn.net/qq_24509229/article/details/80183173正确代码:d...转载 2019-06-27 21:29:17 · 2585 阅读 · 0 评论 -
tensor与ndarray的相互转换
Tensorfow中Tensor与Numpy的ndarray转换https://blog.csdn.net/a1786742005/article/details/84994700原创 2019-07-03 20:30:44 · 4872 阅读 · 0 评论