- 博客(5)
- 收藏
- 关注
翻译 tensorbosrd 没报错但是就是不能画图
1、在spider中运行代码a = tf.constant(3)b = tf.constant(5)x =tf.add(a,b)with tf.Session() as sess: writer = tf.summary.FileWriter('C:/TensorFlowLog/add',sess.graph)#第一个参数是你想要保存的路径 第二个参数是你想要保存的目标 ...
2018-08-23 16:56:56
435
原创 import nltk 后还会报错 修正方式如下
1、错误类型 LookupError: LookupError: ********************************************************************** Resource punkt not found. Please use the NLTK Downloader to obtain the resource:import ...
2018-08-22 16:57:55
4168
1
原创 写入的时候出现编码错误时 解决方案unicode error
1、错误 SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape如图:2、解决方法:将‘ \ ’ 改为‘ / ’即:path = 'C:/Users/lenovo/Desktop'+ name+'.txt'...
2018-08-06 20:13:25
9392
1
转载 TensorFlow入门变量 variable_scope、 name_scope
#tf.variable_scope可以让变量有相同的命名,包括tf.get_variable得到的变量,还有tf.Variable的变量 这两个不能同时出现需要引掉一个#tf.name_scope可以让变量有相同的命名,只是限于tf.Variable的变量import tensorflow as tf#使用tf.name_scope tf.variable_scope时的区别with ...
2018-07-27 17:01:24
251
原创 jupyter (python3) 读取文件遇到的问题
1、出现错误 train_df = pd.read_csv('C:\Users\lenovo\Desktop\train.csv',encoding='utf-8') 报错: File "<ipython-input-45-27822e1fee69>", line 1 train_df = pd.read_csv('C:\Users\lenovo\Des...
2018-04-15 16:43:20
8027
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人