自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Deep Learning and NLP Farm

静心学习,期待进步! ideas, code and more

  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除