<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>RNN on 中文AI术语词典</title><link>https://terms-en.ai-term-hub.com/zh/tags/rnn/</link><description>Recent content in RNN on 中文AI术语词典</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Sat, 18 Jul 2026 11:44:45 +0000</lastBuildDate><atom:link href="https://terms-en.ai-term-hub.com/zh/tags/rnn/index.xml" rel="self" type="application/rss+xml"/><item><title>长短期记忆网络</title><link>https://terms-en.ai-term-hub.com/zh/terms/long_short_term_memory/</link><pubDate>Sat, 18 Jul 2026 11:00:35 +0000</pubDate><guid>https://terms-en.ai-term-hub.com/zh/terms/long_short_term_memory/</guid><description>&lt;h2 id="definition">Definition&lt;/h2>
&lt;p>LSTM网络通过使用细胞状态和三个门控机制（输入门、遗忘门和输出门），解决了标准RNN中常见的梯度消失问题。这些门控机制调节信息的流动，使网络能够记住或忘记特定信息。&lt;/p>
&lt;h3 id="summary">Summary&lt;/h3>
&lt;p>一种专门设计的循环神经网络架构，旨在学习序列数据中的长期依赖关系。&lt;/p>
&lt;h2 id="key-concepts">Key Concepts&lt;/h2>
&lt;ul>
&lt;li>门控机制&lt;/li>
&lt;li>细胞状态&lt;/li>
&lt;li>序列数据&lt;/li>
&lt;li>梯度消失&lt;/li>
&lt;/ul>
&lt;h2 id="use-cases">Use Cases&lt;/h2>
&lt;ul>
&lt;li>时间序列预测&lt;/li>
&lt;li>语音识别&lt;/li>
&lt;li>机器翻译&lt;/li>
&lt;/ul>
&lt;h2 id="code-example">Code Example&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-python" data-lang="python">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">import&lt;/span> torch.nn &lt;span style="color:#66d9ef">as&lt;/span> nn
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>lstm &lt;span style="color:#f92672">=&lt;/span> nn&lt;span style="color:#f92672">.&lt;/span>LSTM(input_size&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#ae81ff">10&lt;/span>, hidden_size&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#ae81ff">20&lt;/span>, num_layers&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#ae81ff">1&lt;/span>)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="related-terms">Related Terms&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/recurrent_neural_network-%E5%BE%AA%E7%8E%AF%E7%A5%9E%E7%BB%8F%E7%BD%91%E7%BB%9C/">recurrent_neural_network (循环神经网络)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/gates-%E9%97%A8%E6%8E%A7/">gates (门控)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/sequence_modeling-%E5%BA%8F%E5%88%97%E5%BB%BA%E6%A8%A1/">sequence_modeling (序列建模)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/nlp-%E8%87%AA%E7%84%B6%E8%AF%AD%E8%A8%80%E5%A4%84%E7%90%86/">nlp (自然语言处理)&lt;/a>&lt;/li>
&lt;/ul></description></item></channel></rss>