上一页 1 ··· 330 331 332 333 334 335 336 337 338 ··· 345 下一页
摘要: #!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Sun Sep 30 17:12:12 2018这是用keras搭建的vgg16网络这是很经典的cnn,在图像和时间序列分析方面有很多的应用... 阅读全文
posted @ 2018-10-05 15:07 luoganttcc 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 12 阅读全文
posted @ 2018-10-05 14:25 luoganttcc 阅读(113) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Sun Sep 30 18:00:30 2018这是用keras搭建的简单的cnn 网络@author: lg"""##import ker... 阅读全文
posted @ 2018-10-05 14:07 luoganttcc 阅读(389) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tftemp = [0., 0., 1., 0., 0., 0., 1.5, 2.5]# Reshape the tensor to be 3 dimensions.values = tf.reshape(temp,... 阅读全文
posted @ 2018-10-02 08:36 luoganttcc 阅读(280) 评论(0) 推荐(0) 编辑
摘要: max pooling是CNN当中的最大值池化操作,其实用法和卷积很类似有些地方可以从卷积去参考【TensorFlow】tf.nn.conv2d是怎样实现卷积的?tf.nn.max_pool(value, ksize, strides, padding, n... 阅读全文
posted @ 2018-10-01 21:32 luoganttcc 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 链接 阅读全文
posted @ 2018-10-01 20:54 luoganttcc 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 为了取回操作的输出内容, 可以在使用 Session 对象的 run() 调用 执行图时,传入一些 tensor, 这些 tensor 会帮助你取回结果. 在之前的例子里,我们只取回了单个节点 state, 但是你也可以取回多个 tensor:import ... 阅读全文
posted @ 2018-10-01 10:46 luoganttcc 阅读(96) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tf# 创建一个常量 op, 产生一个 1x2 矩阵. 这个 op 被作为一个节点# 加到默认图中.## 构造器的返回值代表该常量 op 的返回值.matrix1 = tf.constant([[3., 3.]])#... 阅读全文
posted @ 2018-10-01 10:35 luoganttcc 阅读(98) 评论(0) 推荐(0) 编辑
摘要: CPUwith tf.Session() as sess: ...: with tf.device("/cpu:0"): ...: m1=tf.constant([[3,3]]) ...: m2=tf... 阅读全文
posted @ 2018-10-01 10:17 luoganttcc 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 可变参数允许你传入0个或任意个参数,这些可变参数在函数调用时自动组装为一个tuple。而关键字参数允许你传入0个或任意个含参数名的参数,这些关键字参数在函数内部自动组装为一个dictdef person(name,age,**kw): ... 阅读全文
posted @ 2018-09-30 14:31 luoganttcc 阅读(96) 评论(0) 推荐(0) 编辑
上一页 1 ··· 330 331 332 333 334 335 336 337 338 ··· 345 下一页