- 博客(4)
- 收藏
- 关注
原创 tf.concat
show codes:import tensorflow as tft1 = [[[1, 1, 1],[2, 2, 2]],[[3, 3, 3],[4, 4, 4]]]t2 = [[[5, 5, 5],[6, 6, 6]],[[7, 7, 7],[8, 8, 8]]]with tf.Session() as sess: A = tf.concat(0, [t1, t2]) B
2017-04-30 14:45:01 6256
原创 tf.sign和tf.reduce_sum
tensorflow中两个经常用到的操作,理解的不是很透彻,故在此做标记: 关于reduce_sum的维度问题也容易让人迷惑,特找来好用的图示,一看即懂: 为了加深影响,给出简单code import numpy as npimport tensorflow as tfinputs = [[1,0,2],[3,2,4]]inputs = np.array(inputs)A = t
2017-04-30 11:41:57 14758 2
原创 tensorflow中 bilstm+crf实现代码总结
正看这方面的资料,网上资源多多,而且质量很高,总结放在此处:Implementing Bi-directional LSTM-CRF Network http://stackoverflow.com/questions/33078423/implementing-bi-directional-lstm-crf-networkCRF和LSTM 模型在序列标注上的优劣? https://www.zh
2017-04-29 10:01:17 15422
原创 python 除法保留两位小数点
a = 1b = 3print(a/b)#方法一:print(round(a/b,2))#方法二:print(format(float(a)/float(b),'.2f'))#方法三:print ('%.2f' %(a/b))
2017-04-19 21:40:41 51074
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人