
deep learning
面向未来的历史
这个作者很懒,什么都没留下…
展开
-
pytorch中Dataset,Dataloader 使用
在pytorch中,使用Dataset, DataLoader来自定义训练模型时输入数据。 以下是一个简单的使用实例。 该实例使用的数据集是个list类型, x = [0,1,2,3 … 49 ] 编程语言: python3.6+ , torch class MyDataset(Dataset): def __init__(self): x = list(range(0,5...原创 2020-03-10 15:32:07 · 6548 阅读 · 1 评论 -
Recurrent Neural Networks 循环神经网络
RNNs是很受欢迎的模型,在处理 NLP 任务方面很有前景。结构典型的RNN 全连接网络结构如下图所示: 右边是对左边的结构的简单描述。 进一步可以描述为:在上图中, xtx_t 是在 t 时间序列时刻的输入,例如:x1x_1可以是 one-hot 向量对应的句子的第二个词。sts_t 是 隐藏层在时间步t的状态。是网络的记忆模块memory。oto_t 是在时间步t 的输出。例如,想要原创 2016-08-21 09:21:38 · 564 阅读 · 0 评论 -
fasttext: cannot load * due to c++ extension failed to allocate the memory
背景: 使用fasttext开发意图识别(文本分类)功能,并使用python httpserver搭建意图识别服务。在测试环境是没有使用问题。 但是将服务部署到线上环境,准备运行时。报错 :fasttext: cannot load * due to c++ extension failed to allocate the memory 解决: 在安装fasttext时,是直接使用 sudo ...原创 2019-01-03 17:49:12 · 1622 阅读 · 0 评论 -
使用theano出错问题
在调试一个开源深度学习的项目,该使用了 theano 。 运行程序出现如下错误。 环境: centos7.5 python3.6 错误1 ImportError: Version check of the existing lazylinker compiled file. Looking for version 0.211, but found None. Extra debug informa...原创 2019-08-21 18:10:10 · 2648 阅读 · 1 评论