会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
庭明
博客园
首页
新随笔
新文章
联系
管理
订阅
上一页
1
···
11
12
13
14
15
2018年7月2日
tensorflow 模型保存后的加载路径问题
摘要: import tensorflow as tf #保存模型 saver = tf.train.Saver() saver.save(sess, "e://code//python//test//package_test//model.ckpt", global_step=step) #加载读取模型
阅读全文
posted @ 2018-07-02 17:40 庭明
阅读(690)
评论(0)
推荐(0)
2018年6月28日
ValueError: Argument must be a dense tensor:... got shape [6, 60, 160, 3], but wanted [6].
摘要: 在将 列表或元组 数据转换成 dataset类型时 import numpy as np import tensorflow as tffrom sklearn.cross_validation import train_test_split pic_array=np.ones((60,160,3)
阅读全文
posted @ 2018-06-28 16:31 庭明
阅读(1325)
评论(0)
推荐(0)
2018年6月22日
js常用用途
摘要: 页面元素查找 查找元素方法表达式 返回值 依据元素性值 可使用的对象 a=document.getElementById() 单个元素,null 属性ID值 document b=document.getElementsByName() 数组 属性name值 document c=document.
阅读全文
posted @ 2018-06-22 17:29 庭明
阅读(169)
评论(0)
推荐(0)
2018年6月21日
numpy 小示例
摘要: import numpy as np 生成 3*4 的由 0 组成的二维数组 >>> np.zeros((3,4)) array([[0., 0., 0., 0.], [0., 0., 0., 0.], [0., 0., 0., 0.]]) 生成 2*3*4 的由 1 组成的三维数组 >>>np.o
阅读全文
posted @ 2018-06-21 17:50 庭明
阅读(161)
评论(0)
推荐(0)
2018年6月20日
mysql 到postgresql
摘要: 1 import pandas as pd 2 import psycopg2 3 from io import StringIO 4 import pymysql 5 conf={"mysql_form":{ 6 'host' : 'localhost', 7 'port' : 3306, 8 '
阅读全文
posted @ 2018-06-20 11:39 庭明
阅读(191)
评论(0)
推荐(0)
2018年6月14日
jquery笔记
摘要: a=$(.name) 定位class=name 的元素 a.parent() 定位a元素的父节点 a.parents(css表达式) 定位a元素所有的祖先节点,可通过css表达式进行筛选 a.children(css表达式) 定位a元素直接子节点,可通过css表达式进行筛选 a.prev() 定位a
阅读全文
posted @ 2018-06-14 18:18 庭明
阅读(110)
评论(0)
推荐(0)
css选择器
摘要: “a.hot” 定位标签为<a>的属性class=hot的元素 “#dol" 定位id=dol的元素 ”input" 定位标签 值为<input>的元素 “input[name="white"] 定位标签值为input 且属性name值为”white"的元素 ”html>body>div" 定位ht
阅读全文
posted @ 2018-06-14 15:12 庭明
阅读(112)
评论(0)
推荐(0)
上一页
1
···
11
12
13
14
15
公告