![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
pytorch
ZJWANGER
永远相信美好的事情即将发生
展开
-
Torchtext使用教程
1. 下载数据: kaggle:Movie Review Sentiment Analysis (Kernels Only) train.tsv contains the phrases and their associated sentiment labels. We have additionally provided a SentenceId so that you can track wh...原创 2019-06-19 12:35:04 · 20192 阅读 · 8 评论 -
循环神经网络pytorch实现
RNN 前向过程: ht=g(Uht−1+Wxt+bh)h_t = g(Uh_{t-1} + Wx_t +b_h)ht=g(Uht−1+Wxt+bh) yt=g(Wyht+by)y_t = g(W_yh_t + b_y)yt=g(Wyht+by) pytorch 实现 import torch import torch.nn as nn import torch.nn.f...原创 2019-07-17 10:34:43 · 358 阅读 · 0 评论