自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 资源 (1)
  • 收藏
  • 关注

原创 tensorflow 网络

https://blog.csdn.net/qq_29573053/article/details/80323951##tensorflow的构造过程import tensorflow as tfimport numpy as np添加层def add_layer(inputs, in_size, out_size, activation_function=None):add one more layer and return the output of this layerWeights =

2020-12-10 11:34:28 152

原创 2020-12-08

https://blog.csdn.net/weixin_42348333/article/details/89598144算法模块里面参数为 h r t h’ r t’transe公式推导部分是正确的代码SGD梯度更新L1模块有错误学习率和导数相乘写错了l2范数的梯度l1部分的梯度...

2020-12-08 16:07:52 91

原创 CNN textCNN 代码 bert

https://juejin.im/post/6844904185608011789https://panxiaoxie.cn/2018/05/30/%E6%96%87%E6%9C%AC%E5%88%86%E7%B1%BB%E7%B3%BB%E5%88%972-textCNN/

2020-11-05 19:29:59 390

原创 pytorch embedding的使用方法

https://yifdu.github.io/2018/12/05/Embedding%E5%B1%82/pytorch 中embedding词向量的使用https://blog.csdn.net/david0611/article/details/81090371import torchfrom torch import nnfrom torch.autograd import Variable随机初始化的过程# 定义词嵌入embeds = nn.Embedding(2, 5) # 2

2020-11-05 17:18:19 1412

原创 列表解析

https://zhuanlan.zhihu.com/p/63986999print([(1,3,k) for k in T]

2020-11-04 17:36:00 81

原创 one-hot 编码

import pandas as pddf = pd.DataFrame([[‘green’ , ‘A’],[‘red’ , ‘B’],[‘blue’ , ‘A’]])df.columns = [‘color’, ‘class’]pd.get_dummies(df)https://blog.csdn.net/maymay_/article/details/80198468https://juejin.im/post/6885614731982766088对分类特征进行One-Hot

2020-10-27 16:01:55 158

原创 代码trick

针对打印不完整的问题#显示所有列pd.set_option(‘display.max_columns’, None)#显示所有行pd.set_option(‘display.max_rows’, None)#设置value的显示长度为100,默认为50pd.set_option(‘max_colwidth’,100)

2020-10-27 15:59:12 226

原创 windows anaconda 的虚拟环境下将 python2 的文件夹转换为python3

查找配置的环境window+r cmd 打开命令行conda info --env找到配置的环境和位置根据文件的位置 找到 script 里面的2to3在pycharm的terminal中输入转换命令转换某个python文件,比如E盘根目录下的test.py,只需要在命令行里输入python 2to3.py -w E:/test.py如果需要转换某个文件夹下的所有文件,例如E盘test文件夹下的所有文件,只需要在命令行里输入python 2to3.py -w E:/test..

2020-10-08 11:27:08 150

原创 CSC MAC

CSC MAChttps://www.cnblogs.com/keyky/p/12240149.htmlMozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)转载链接: [https://www.cnblogs.com/keyky/p/12240149.html(https://www.csdn.net/).

2020-05-17 22:04:01 376

原创 cmd命令失效

windows+R 打开cmdcmd 默认为c盘想要转到d盘中 python的scriptscd d盘scripts 完全没反应解决办法cd D:\Program Files (x86)\Python64bit\ScriptsD :成功转换心累略有所得的时间呐...

2019-05-16 22:34:27 647

dkrL description representation learning

DKRL model for nlp , zero shot model ,combing description

2019-04-23

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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