会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
luoganttcc
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
327
328
329
330
331
332
333
334
335
···
345
下一页
2018年10月28日
python generater yeild
摘要: #listL = [x * x for x in range(10)]#generraterg = (x * x for x in range(10))gOut[4]: at 0x7f3d143048e0>LOut[5]: [0, 1, 4, 9, 16,...
阅读全文
posted @ 2018-10-28 11:26 luoganttcc
阅读(117)
评论(0)
推荐(0)
2018年10月26日
tf.split()
摘要: import numpy as npimport tensorflow as tfa=np.reshape(range(24),(4,2,3))sess=tf.InteractiveSession()b= tf.split(a,1,0)c=sess.run(...
阅读全文
posted @ 2018-10-26 19:18 luoganttcc
阅读(91)
评论(0)
推荐(0)
tf.transpose()
摘要: import tensorflow as tf; import numpy as np; x = tf.constant([[1, 2, 3], [4, 5, 6]])cc=tf.transpose(x)init = tf.initialize_all_va...
阅读全文
posted @ 2018-10-26 10:51 luoganttcc
阅读(107)
评论(0)
推荐(0)
2018年10月25日
tensorflow 保存模型
摘要: #!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Thu Oct 25 15:29:59 2018@author: lg"""import tensorflow as tfimport nu...
阅读全文
posted @ 2018-10-25 19:28 luoganttcc
阅读(96)
评论(0)
推荐(0)
tensorflow 双向lstm
摘要: #!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Thu Oct 25 13:41:35 2018@author: lg"""import numpy as npimport pandas ...
阅读全文
posted @ 2018-10-25 19:22 luoganttcc
阅读(375)
评论(0)
推荐(0)
tensorflow lstm (一)
摘要: import numpy as np import tensorflow as tf import tensorflow.contrib.rnn as rnn import matplotlib.pyplot as plt import matplotlib...
阅读全文
posted @ 2018-10-25 19:20 luoganttcc
阅读(125)
评论(0)
推荐(0)
2018年10月23日
tf.pad()
摘要: 网上看到很多tf.pad的文章,很多都语焉不详,需自己动手操作才能真正理解,pad,一言以蔽之,就是在矩阵的周围补0。 1. 对于二维矩阵,就是在 上 ,下,左,右补0#pad1 = np.array([[‘上’,‘下’], [‘左’,‘右’ ]])impo...
阅读全文
posted @ 2018-10-23 10:50 luoganttcc
阅读(211)
评论(0)
推荐(0)
2018年10月22日
tensorboard 远程
摘要: 在登录远程服务器的时候使用命令:ssh -L 16006:127.0.0.1:6006 name@server_ipnohup python file_name.py >p1.log >tensorboard --logdir=./log在本机浏览器输入:h...
阅读全文
posted @ 2018-10-22 14:33 luoganttcc
阅读(109)
评论(0)
推荐(0)
tensorboard 用法(二)
摘要: #!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Mon Oct 22 13:04:34 2018@author: lg"""#!/usr/bin/env python3# -*- codi...
阅读全文
posted @ 2018-10-22 14:27 luoganttcc
阅读(107)
评论(0)
推荐(0)
tensorboard 用法(一)
摘要: import tensorflow as tfimport numpy as np## prepare the original datawith tf.name_scope('data'): x_data = np.random.rand(100)...
阅读全文
posted @ 2018-10-22 14:26 luoganttcc
阅读(84)
评论(0)
推荐(0)
上一页
1
···
327
328
329
330
331
332
333
334
335
···
345
下一页
公告