<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>LSTM on Bharath's Blog</title><link>https://bharathbhushan1.github.io/blog/tags/lstm/</link><description>Recent content in LSTM on Bharath's Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 20 Apr 2019 10:00:00 +0000</lastBuildDate><atom:link href="https://bharathbhushan1.github.io/blog/tags/lstm/index.xml" rel="self" type="application/rss+xml"/><item><title>Playing with LSTM</title><link>https://bharathbhushan1.github.io/blog/posts/2019-04-20-playing-with-lstm/</link><pubDate>Sat, 20 Apr 2019 10:00:00 +0000</pubDate><guid>https://bharathbhushan1.github.io/blog/posts/2019-04-20-playing-with-lstm/</guid><description>&lt;p&gt;I was trying to learn the basics of LSTM and found this &lt;a href="https://pytorch.org/tutorials/beginner/nlp/sequence_models_tutorial.html"&gt;pytorch tutorial&lt;/a&gt;. Starting from there I tried out the parts-of-speech tagger with minor modifications.&lt;/p&gt;
&lt;h3 id="1-import-the-necessary-libraries"&gt;1. Import the necessary libraries&lt;/h3&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import numpy as np
torch.manual_seed(1)
&lt;/code&gt;&lt;/pre&gt;</description></item></channel></rss>