<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Hironsan</author_name>
  <author_url>https://blog.hatena.ne.jp/Hironsan/</author_url>
  <blog_title>Ahogrammer</blog_title>
  <blog_url>https://hironsan.hatenablog.com/</blog_url>
  <categories>
    <anon>Deep Learning</anon>
    <anon>Keras</anon>
    <anon>機械学習</anon>
    <anon>自然言語処理</anon>
    <anon>Python</anon>
  </categories>
  <description>自然言語処理で RNN を使っていると、RNN の内部状態を取得したくなることがあります。 TensorFlow では tf.nn.dynamic_rnn 等の関数を使うと、出力と状態を返してくれます。 しかし、Keras でのやり方については意外と日本語の情報がありませんでした。 本記事では Keras で RNN の内部状態を取得する方法についてまとめてみました。 RNN/LSTM/GRU の内部状態を取得 Keras にはリカレント層として、SimpleRNN、LSTM、GRU の3種類が用意されています。これらの層から内部状態を取得するためには、インスタンス化時の引数として retur…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhironsan.hatenablog.com%2Fentry%2Fget-rnn-state-with-keras&quot; title=&quot;Keras の RNN/LSTM/GRU で内部状態を取得する - Ahogrammer&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-09-21 14:04:33</published>
  <title>Keras の RNN/LSTM/GRU で内部状態を取得する</title>
  <type>rich</type>
  <url>https://hironsan.hatenablog.com/entry/get-rnn-state-with-keras</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
