{"id":45994,"date":"2018-03-15T16:58:09","date_gmt":"2018-03-15T07:58:09","guid":{"rendered":"https:\/\/www.sejuku.net\/blog\/?p=45994"},"modified":"2024-05-06T11:46:18","modified_gmt":"2024-05-06T02:46:18","slug":"45994","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/45994","title":{"rendered":"\u3010TensorFlow\u3011RNN\u306e\u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u6311\u6226\uff01"},"content":{"rendered":"<p><span style=\"color: #339966;\"><strong>TensorFlow<\/strong><\/span>\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306f\u9032\u3093\u3067\u3044\u307e\u3059\u304b\uff1f<\/p>\n<p>MNIST\u30c7\u30fc\u30bf\u306e\u5b66\u7fd2\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u3044\u304f\u3064\u304b\u8a66\u3057\u305f\u3089\u3001<span style=\"color: #ff0000;\"><strong>\u6b21\u306f\u4f55\u3092\u3059\u308c\u3070\u3044\u3044\u304b\u3057\u3089\uff1f<\/strong><\/span>\u3068\u601d\u3063\u3066\u3044\u307e\u305b\u3093\u304b\uff1f<\/p>\n<p>\u6b21\u306f\u3001<span style=\"color: #0000ff;\"><strong>\u8a00\u8a9e\u7cfb\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb<\/strong><\/span>\u306b\u6311\u6226\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u3001<span style=\"color: #339966;\"><strong>RNN\uff08Recurrent Neural Networks\uff1a\u518d\u5e30\u578b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\uff09<\/strong><\/span>\u3092\u5229\u7528\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u52d5\u4f5c\u3055\u305b\u3066\u307f\u307e\u3059\u3002<\/p>\n<h2>RNN\u3068\u306f<\/h2>\n<p><span style=\"color: #339966;\"><strong>RNN<\/strong><\/span>\u306f\u3001<span style=\"color: #339966;\"><strong>\u6642\u7cfb\u5217\u30c7\u30fc\u30bf<\/strong><\/span>\u3068\u547c\u3070\u308c\u308b\u30c7\u30fc\u30bf\u3092\u6271\u3046<span style=\"color: #339966;\"><strong>\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p>\u6642\u7cfb\u5217\u30c7\u30fc\u30bf\u3068\u306f\u3001\u3042\u308b\u30c7\u30fc\u30bf\u3068\u305d\u306e\u6b21\u306e\u30c7\u30fc\u30bf\u306b\u95a2\u9023\u304c\u3042\u308b\u30c7\u30fc\u30bf\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001<span style=\"color: #0000ff;\"><strong>\u97f3\u58f0\u306e\u6ce2\u5f62\u304c\u6642\u7cfb\u5217\u30c7\u30fc\u30bf<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p>2\u7b87\u6240\u3067\u540c\u3058\u5468\u6ce2\u6570\u3067\u3042\u3063\u305f\u3068\u3057\u3066\u3082\u3001\u524d\u5f8c\u306e\u5468\u6ce2\u6570\u306b\u3088\u3063\u3066\u300c\u3042\u300d\u306b\u805e\u3053\u3048\u305f\u308a\u300c\u3044\u300d\u306b\u805e\u3053\u3048\u305f\u308a\u3059\u308b\u305f\u3081\u3001\u524d\u5f8c\u306e\u30c7\u30fc\u30bf\u3092\u542b\u3081\u3066\u5b66\u7fd2\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u4ed6\u306b\u3082\u3001\u65e5\u672c\u8a9e\u3068\u304b\u82f1\u8a9e\u306e\u3088\u3046\u306a<span style=\"color: #ff0000;\"><strong>\u81ea\u7136\u8a00\u8a9e\u3082\u6642\u7cfb\u5217\u30c7\u30fc\u30bf<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p>\u300c\u306f\u3057\u3092\u3082\u3064\u300d\u306e\u300c\u306f\u3057\uff08\u7bb8\uff09\u300d\u3068\u3001\u300c\u306f\u3057\u3092\u308f\u305f\u308b\u300d\u306e\u300c\u6a4b\/\u7aef\u300d\u306f\u3001\u300c\u306f\u3057\u300d\u306f\u540c\u3058\u6587\u5b57\u3067\u3059\u304c\u3001\u524d\u5f8c\u306b\u3042\u308b\u6587\u5b57\u3067\u610f\u5473\u304c\u307e\u3063\u305f\u304f\u5909\u308f\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3082\u3084\u306f\u308a\u6642\u7cfb\u5217\u30c7\u30fc\u30bf\u3068\u8a00\u3048\u305d\u3046\u3067\u3059\u306d\u3002<\/p>\n<p><span style=\"color: #ff0000; background-color: #ffff99;\"><strong>RNN\u306f\u3001\u3053\u306e\u3088\u3046\u306a\u30c7\u30fc\u30bf\u3092\u5b66\u7fd2\u3059\u308b\u3068\u304d\u306b\u6709\u7528\u306a\u30e2\u30c7\u30eb\u3068\u3057\u3066\u8003\u6848\u3055\u308c\u307e\u3057\u305f\u3002<\/strong><\/span><\/p>\n<h3>LSTM<\/h3>\n<p>RNN\u306e\u4e00\u7a2e\u3067\u3042\u308b<span style=\"color: #339966;\"><strong>LSTM\uff08Long short-term memory\uff09<\/strong><\/span>\u3068\u3044\u3046\u30e2\u30c7\u30eb\u3082\u6ce8\u76ee\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>LSTM\u306f\u3001RNN\u3092\u62e1\u5f35\u3057\u305f\u30e2\u30c7\u30eb\u3067\u3001RNN\u306b\u3042\u308b<span style=\"color: #0000ff;\"><strong>\u8a18\u61b6\u9818\u57df\u3092\u30d1\u30ef\u30fc\u30a2\u30c3\u30d7\u3055\u305b\u305f\u3082\u306e<\/strong><\/span>\u3068\u8003\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>LSTM\u306e\u7279\u5fb4\u306f\u3001RNN\u3067\u306f\u5b66\u7fd2\u3067\u304d\u306a\u304b\u3063\u305f\uff08\u6642\u7cfb\u5217\u30c7\u30fc\u30bf\u3068\u3057\u3066\uff09\u9060\u304f\u306b\u3042\u308b\u30c7\u30fc\u30bf\u3068\u306e\u95a2\u9023\u3092\u5b66\u7fd2\u3067\u304d\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u901a\u5e38\u306eRNN\u3067\u3082\u3001\u657010\u7a0b\u5ea6\u9060\u304f\u306b\u3042\u308b\u30c7\u30fc\u30bf\u3068\u306e\u95a2\u9023\u306f\u5b66\u7fd2\u3067\u304d\u307e\u3059\u304c\u3001<span style=\"color: #ff0000;\"><strong>\u305d\u308c\u4ee5\u4e0a\u306f\u96e3\u3057\u304f\u306a\u308a\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p>\u4e00\u65b9\u3001<span style=\"color: #0000ff;\"><strong>LSTM\u3067\u3042\u308c\u3070\u30011000\u7a0b\u5ea6\u9060\u304f\u306b\u3042\u308b\u30c7\u30fc\u30bf\u3068\u306e\u95a2\u9023\u3082\u5341\u5206\u306b\u5b66\u7fd2\u3067\u304d\u308b<\/strong><\/span>\u306e\u3067\u3059\u3002<\/p>\n<h3>Bidirectional RNN<\/h3>\n<p><span style=\"color: #339966;\"><strong>Bidirectional RNN<\/strong><\/span>\u3068\u3044\u3046\u30e2\u30c7\u30eb\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>RNN\u306f\u3001<span style=\"color: #0000ff;\"><strong>\u904e\u53bb\u30c7\u30fc\u30bf\u3068\u73fe\u5728\u306e\u30c7\u30fc\u30bf\u306e\u95a2\u9023\u3092\u5b66\u7fd2\u3057\u307e\u3059<\/strong><\/span>\u304c\u3001Bidirectional RNN\u306f\u3001\u305d\u308c\u306b\u52a0\u3048\u3066<span style=\"color: #ff0000;\"><strong>\u672a\u6765\u306e\u30c7\u30fc\u30bf\u3068\u73fe\u5728\u306e\u30c7\u30fc\u30bf\u306e\u95a2\u9023\uff08\u9006\u65b9\u5411\u306e\u95a2\u9023\uff09\u3082\u5b66\u7fd2\u3057\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p>Bidirectional RNN\u304c\u6709\u7528\u306a\u30b1\u30fc\u30b9\u3068\u3057\u3066\u3001\u7c21\u5358\u306a\u6570\u5217\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><span style=\"color: #0000ff;\"><strong>1\u30012\u3001\uff1f\u30014\u30015<\/strong><\/span>\u3068\u6570\u5b57\u304c\u4e26\u3093\u3067\u3044\u305f\u3068\u304d\u306f\u3001\u300c\uff1f\u300d\u306f<span style=\"color: #ff0000;\"><strong>3<\/strong><\/span>\u306b\u306a\u308b\u3060\u308d\u3046\u3068\u4e88\u6e2c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4e00\u65b9\u3001<span style=\"color: #0000ff;\"><strong>1\u30012\u3001\uff1f\u30018\u300116<\/strong><\/span>\u3068\u4e26\u3093\u3067\u3044\u305f\u3068\u304d\u306f\u3001\u300c\uff1f\u300d\u306f<span style=\"color: #ff0000;\"><strong>4<\/strong><\/span>\u306b\u306a\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u300c\uff1f\u300d\u306e\u524d\u306f\u540c\u3058\u300c1\u30012\u300d\u3067\u3082\u3001<span style=\"color: #ff0000;\"><strong>\u300c\uff1f\u300d\u306e\u5f8c\u304c\u5909\u308f\u308b\u3053\u3068\u3067\u300c\uff1f\u300d\u306b\u5165\u308b\u6570\u5b57\u3082\u5909\u308f\u308a\u305d\u3046<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306a\u30b1\u30fc\u30b9\u3067\u306f\u3001RNN\u3084LSTM\u3067\u306f\u306a\u304f\u3001Bidirectional RNN\u3092\u4f7f\u3048\u3070\u6b63\u3057\u304f\u5b66\u7fd2\u3059\u308b\u3053\u3068\u304c\u671f\u5f85\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30bf\u30b9\u30af\u3092\u78ba\u8a8d\u3057\u3088\u3046<\/h2>\n<p>TensorFlow\u306e\u30b5\u30a4\u30c8\u306b\u3001<span style=\"color: #339966;\"><strong>\u300cRecurrent Neural Networks\u300d\uff08\u518d\u5e30\u578b\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\uff09<\/strong><\/span>\u3068\u3044\u3046\u30da\u30fc\u30b8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><del>\u53c2\u8003\uff1a<a href=\"https:\/\/www.tensorflow.org\/tutorials\/recurrent\" target=\"_blank\" rel=\"noopener\">https:\/\/www.tensorflow.org\/tutorials\/recurrent<\/a><\/del><\/p>\n<p>\u6700\u65b0\u306eURL\uff1a<a href=\"https:\/\/www.tensorflow.org\/tutorials\/sequences\/recurrent\">https:\/\/www.tensorflow.org\/tutorials\/sequences\/recurrent<\/a><\/p>\n<p>\u3053\u3053\u304b\u3089\u306f\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u8a66\u3057\u3066\u307f\u307e\u3059\u304c\u3001\u305d\u306e\u524d\u306b\u3001\u4e0a\u8a18\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u6271\u3046\u30c7\u30fc\u30bf\u3068\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u30b4\u30fc\u30eb\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><span style=\"color: #0000ff;\"><strong>\u5b66\u7fd2\u306b\u4f7f\u7528\u3059\u308b\u30c7\u30fc\u30bf<\/strong><\/span>\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u82f1\u6587\u3067\u3059\u3002<\/p>\n<pre class=\"decode:true \"> japanese companies have financed small and medium-sized u.s. firms for years but in recent months the pace has taken off<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306a\u82f1\u6587\u3092\u7d0442000\u6587\u5b66\u7fd2\u3057\u305f\u4e0a\u3067\u3001<span style=\"color: #ff0000;\"><strong>\u4efb\u610f\u306e\u82f1\u5358\u8a9e\u306e\u6b21\u306b\u3069\u306e\u3088\u3046\u306a\u5358\u8a9e\u304c\u51fa\u73fe\u3059\u308b\u304b\u3092\u4e88\u6e2c\u3059\u308b<\/strong><\/span>\uff08\u30e2\u30c7\u30eb\u3092\u4f5c\u6210\u3059\u308b\uff09\u306e\u304c\u30b4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u3001\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092<span style=\"color: #339966;\"><strong>\u300c\u82f1\u5358\u8a9e\u306e\u4e88\u6e2c\u30d7\u30ed\u30b0\u30e9\u30e0\u300d<\/strong><\/span>\u3068\u547c\u3076\u3053\u3068\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>RNN\u306e\u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u6311\u6226\uff01<\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u89e3\u8aac\u306f\u305d\u306e\u30da\u30fc\u30b8\u306b\u304a\u4efb\u305b\u3057\u3066\u3001\u89e3\u8aac\u3055\u308c\u3066\u3044\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8a66\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/h3>\n<p>\u307e\u305a\u306f\u3001\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u304b\u3089\u3001<span style=\"color: #339966;\"><strong>ptb_word_lm.py<\/strong><\/span>\u3001<span style=\"color: #339966;\"><strong>reader.py<\/strong><\/span>\u3001<span style=\"color: #339966;\"><strong>util.py<\/strong><\/span>\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/github.com\/tensorflow\/models\/tree\/master\/tutorials\/rnn\/ptb\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/tensorflow\/models\/tree\/master\/tutorials\/rnn\/ptb<\/a><\/p>\n<p>\u3053\u306e3\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u540c\u3058\u30d5\u30a9\u30eb\u30c0\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<p>\u4efb\u610f\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u4fdd\u5b58\u3059\u308c\u3070\u5927\u4e08\u592b\u3067\u3059\u306e\u3067\u3001\u3053\u3053\u3067\u306f<span style=\"color: #339966;\"><strong>\u300cD:\\TensorFlow\\RNN\u300d\u30d5\u30a9\u30eb\u30c0<\/strong><\/span>\u306b\u4fdd\u5b58\u3057\u307e\u3057\u305f\u3002<\/p>\n<h3>PTB\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/h3>\n<p>\u6b21\u306b\u3001<span style=\"color: #339966;\"><strong>PTB\uff08Penn Treebank\uff09\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8<\/strong><\/span>\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<p>PTB\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306f\u3001<span style=\"color: #0000ff;\"><strong>\u30a6\u30a9\u30fc\u30eb\u30b9\u30c8\u30ea\u30fc\u30c8\u30b8\u30e3\u30fc\u30ca\u30eb\u306a\u3069\u306e\u539f\u7a3f\u304b\u3089\u4f5c\u6210\u3055\u308c\u305f\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8<\/strong><\/span>\u3067\u3001\u82f1\u8a9e\u3067\u306e\u8a00\u8a9e\u51e6\u7406\u3067\u3088\u304f\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001PTB\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u3046\u3061\u3001<span style=\"color: #339966;\"><strong>ptb.train.txt<\/strong><\/span>\u3001<span style=\"color: #339966;\"><strong>ptb.valid.txt<\/strong><\/span>\u3001<span style=\"color: #339966;\"><strong>ptb.test.txt<\/strong><\/span>\u306e3\u3064\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e3\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u5b9f\u306f\u3044\u308d\u3044\u308d\u306a\u3068\u3053\u308d\u3067\u914d\u5e03\u3055\u308c\u3066\u304a\u308a\u3001\u3069\u3053\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3082\u5927\u4e08\u592b\u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u3001TensorFlow\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u3068\u304a\u308a\u3001\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u53d6\u308a\u51fa\u3057\u307e\u3059\u3002<\/p>\n<p>\u53c2\u8003\uff1a<a href=\"http:\/\/www.fit.vutbr.cz\/~imikolov\/rnnlm\/simple-examples.tgz\" target=\"_blank\" rel=\"noopener\">http:\/\/www.fit.vutbr.cz\/~imikolov\/rnnlm\/simple-examples.tgz<\/a><\/p>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f<span style=\"color: #339966;\"><strong>simple-examples.tgz<\/strong><\/span>\uff08\u5727\u7e2e\u30d5\u30a1\u30a4\u30eb\uff09\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u305f\u304f\u3055\u3093\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u8d64\u67a0\u3067\u56f2\u3093\u3060<span style=\"color: #339966;\"><strong>ptb.train.txt<\/strong><\/span>\u3001<span style=\"color: #339966;\"><strong>ptb.valid.txt<\/strong><\/span>\u3001<span style=\"color: #339966;\"><strong>ptb.test.txt<\/strong><\/span>\u306e3\u3064\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-45998\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tens-rnn01.png\" alt=\"tens-rnn01\" width=\"960\" height=\"818\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tens-rnn01.png 960w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tens-rnn01-150x128.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tens-rnn01-300x256.png 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tens-rnn01-640x545.png 640w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tens-rnn01-810x690.png 810w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/p>\n<h3>\u6587\u7ae0\u3092\u5b66\u7fd2\u3059\u308b<\/h3>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u30c7\u30fc\u30bf\u306e\u6e96\u5099\u304c\u3067\u304d\u305f\u3068\u3053\u308d\u3067\u3001<span style=\"color: #0000ff;\"><strong>TensorFlow\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u74b0\u5883\u3067\u6a5f\u68b0\u5b66\u7fd2\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/strong><\/span><\/p>\n<p>\u3053\u3053\u3067\u306f\u3001<span style=\"color: #339966;\"><strong>Anaconda Navigator<\/strong><\/span>\u304b\u3089<span style=\"color: #339966;\"><strong>GPU\u7248TensorFlow<\/strong><\/span>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fPython\u74b0\u5883\u3092\u8d77\u52d5\u3057\u3066\u3001\u300cD:\\TensorFlow\\RNN\u300d\u30d5\u30a9\u30eb\u30c0\u306b\u4fdd\u5b58\u3057\u305f<span style=\"color: #339966;\"><strong>ptb_word_lm.py<\/strong><\/span>\u3092\u5b9f\u884c\u3059\u308b\u64cd\u4f5c\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\uff081\uff09Anaconda Navigator\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p>\uff082\uff09<span style=\"color: #339966;\"><strong>\u300cEnvironment\u300d<\/strong><\/span>\u3092\u30af\u30ea\u30c3\u30af\u5f8c\u3001<span style=\"color: #339966;\"><strong>\u300ctensorflow-gpu\u300d<\/strong><\/span>\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001<span style=\"color: #339966;\"><strong>\u300c<img decoding=\"async\" class=\"alignnone size-full wp-image-45694\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/mnist_03.png\" alt=\"mnist_03\" width=\"16\" height=\"16\" \/>\u300d<\/strong><\/span>\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001<span style=\"color: #339966;\"><strong>\u300cOpen Terminal\u300d<\/strong><\/span>\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-44422\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/02\/tens-use01.png\" alt=\"tens-use01\" width=\"1339\" height=\"832\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/02\/tens-use01.png 1339w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/02\/tens-use01-150x93.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/02\/tens-use01-300x186.png 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/02\/tens-use01-640x398.png 640w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/02\/tens-use01-810x503.png 810w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/02\/tens-use01-1140x708.png 1140w\" sizes=\"(max-width: 1339px) 100vw, 1339px\" \/><\/p>\n<p>\uff083\uff09<span style=\"color: #339966;\"><strong>\u300cD:\u300d<\/strong><\/span>\u3068\u5165\u529b\u3057\u3001Enter\u30ad\u30fc\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-44423\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/02\/tens-use02.png\" alt=\"tens-use02\" width=\"499\" height=\"332\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/02\/tens-use02.png 499w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/02\/tens-use02-150x100.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/02\/tens-use02-300x200.png 300w\" sizes=\"(max-width: 499px) 100vw, 499px\" \/><\/p>\n<p>\uff084\uff09<span style=\"color: #339966;\"><strong>\u300ccd TensorFlow\\RNN\u300d<\/strong><\/span>\u3068\u5165\u529b\u3057\u3001Enter\u30ad\u30fc\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-46000\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tens-rnn02.png\" alt=\"tens-rnn02\" width=\"499\" height=\"332\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tens-rnn02.png 499w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tens-rnn02-150x100.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tens-rnn02-300x200.png 300w\" sizes=\"(max-width: 499px) 100vw, 499px\" \/><\/p>\n<p>\uff085\uff09<span style=\"color: #339966;\"><strong>\u300cpython ptb_word_lm.py &#8211;data_path=data &#8211;model=small\u300d<\/strong><\/span>\u3068\u5165\u529b\u3057\u3001Enter\u30ad\u30fc\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-46001\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tens-rnn03.png\" alt=\"tens-rnn03\" width=\"499\" height=\"332\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tens-rnn03.png 499w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tens-rnn03-150x100.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tens-rnn03-300x200.png 300w\" sizes=\"(max-width: 499px) 100vw, 499px\" \/><\/p>\n<p>\u5b9f\u884c\u4e2d\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-46002\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tens-rnn04.png\" alt=\"tens-rnn04\" width=\"505\" height=\"332\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tens-rnn04.png 505w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tens-rnn04-150x99.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tens-rnn04-300x197.png 300w\" sizes=\"(max-width: 505px) 100vw, 505px\" \/><\/p>\n<p><span style=\"color: #339966;\"><strong>\u300cEpoch: xx\u300d<\/strong><\/span>\u306e\u90e8\u5206\u304c\u3001<span style=\"color: #0000ff;\"><strong>13\u306b\u306a\u308b\u3068\u7d42\u4e86<\/strong><\/span>\u3067\u3059\u306e\u3067\u3001\u7d42\u4e86\u3059\u308b\u307e\u3067\u5f85\u3061\u307e\u3059\u3002<\/p>\n<p>\u7d42\u4e86\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-46003\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tens-rnn05.png\" alt=\"tens-rnn05\" width=\"499\" height=\"332\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tens-rnn05.png 499w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tens-rnn05-150x100.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tens-rnn05-300x200.png 300w\" sizes=\"(max-width: 499px) 100vw, 499px\" \/><\/p>\n<p>Test Perplexity\uff08\u2252\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u6b21\u306b\u6765\u305d\u3046\u306a\u5358\u8a9e\u306e\u6570\uff09\u306b\u300c114.364\u300d\u3068\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001<span style=\"color: #0000ff;\"><strong>\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3067\u306f\u6b21\u306b\u6765\u305d\u3046\u306a\u5358\u8a9e\u304c\uff08\u7121\u9650\u500b\u3067\u306f\u306a\u304f\uff09\u300c114.364\u300d\u500b\u307e\u3067\u9650\u5b9a\u3067\u304d\u305f<\/strong><\/span>\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u4eca\u56de\u306f\u3001<span style=\"color: #339966;\"><strong>TensorFlow<\/strong><\/span>\u3067<span style=\"color: #339966;\"><strong>LSTM<\/strong><\/span>\u3092\u5229\u7528\u3057\u3066\u3001<span style=\"color: #0000ff;\"><strong>\u4efb\u610f\u306e\u82f1\u5358\u8a9e\u306e\u6b21\u306b\u3069\u306e\u3088\u3046\u306a\u5358\u8a9e\u304c\u51fa\u73fe\u3059\u308b\u304b\u3092\u4e88\u6e2c\u3059\u308b\u30e2\u30c7\u30eb<\/strong><\/span>\u3092\u4f5c\u6210\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u4eca\u56de\u306f<span style=\"color: #339966;\"><strong>\u300c&#8211;model=small\u300d<\/strong><\/span>\u3067\u5b9f\u884c\u3057\u307e\u3057\u305f\u304c\u3001<span style=\"color: #339966;\"><strong>\u300c&#8211;model=medium\u300d<\/strong><\/span>\u3084<span style=\"color: #339966;\"><strong>\u300c&#8211;model=large\u300d<\/strong><\/span>\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u300c&#8211;model=small\u300d\u4ee5\u5916\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001\u30e2\u30c7\u30eb\u304c\u5927\u304d\u304f\u306a\u308b\u305f\u3081\u5b66\u7fd2\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u304c\u3001Perplexity\u306e\u6570\u306f\u5c0f\u3055\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u3069\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u3044\u308b\u304b\u306f\u3001<span style=\"color: #ff0000;\"><strong>ptb_word_lm.py\u3092\u8aad\u3081\u3070\u7406\u89e3\u3067\u304d\u307e\u3059<\/strong><\/span>\u306e\u3067\u3001\u305c\u3072\u8aad\u3093\u3067\u307f\u3066\u304f\u3060\u3055\u3044\u306d\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TensorFlow\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306f\u9032\u3093\u3067\u3044\u307e\u3059\u304b\uff1f MNIST\u30c7\u30fc\u30bf\u306e\u5b66\u7fd2\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u3044\u304f\u3064\u304b\u8a66\u3057\u305f\u3089\u3001\u6b21\u306f\u4f55\u3092\u3059\u308c\u3070\u3044\u3044\u304b\u3057\u3089\uff1f\u3068\u601d\u3063\u3066\u3044\u307e\u305b\u3093\u304b\uff1f \u6b21\u306f\u3001\u8a00\u8a9e\u7cfb\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u6311\u6226\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002 \u3068\u3044\u3046\u3053\u3068\u3067 [&hellip;]<\/p>\n","protected":false},"author":16433,"featured_media":46019,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"swell_btn_cv_data":"","footnotes":""},"categories":[2350],"tags":[],"class_list":["post-45994","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-study"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u3010TensorFlow\u3011RNN\u306e\u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u6311\u6226\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010TensorFlow\u3011RNN\u306e\u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u6311\u6226\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sejuku.net\/blog\/45994\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010TensorFlow\u3011RNN\u306e\u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u6311\u6226\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010TensorFlow\u3011RNN\u306e\u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u6311\u6226\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sejuku.net\/blog\/45994\" \/>\n<meta property=\"og:site_name\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sejuku2013\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-15T07:58:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:46:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tensor_rnn.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@samuraijuku\" \/>\n<meta name=\"twitter:site\" content=\"@samuraijuku\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/45994#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/45994\"},\"author\":{\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\"},\"headline\":\"\u3010TensorFlow\u3011RNN\u306e\u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u6311\u6226\uff01\",\"datePublished\":\"2018-03-15T07:58:09+00:00\",\"dateModified\":\"2024-05-06T02:46:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/45994\"},\"wordCount\":168,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/45994#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/03\\\/tensor_rnn.jpg\",\"articleSection\":[\"Python\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/45994\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/45994\",\"name\":\"\u3010TensorFlow\u3011RNN\u306e\u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u6311\u6226\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/45994#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/45994#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/03\\\/tensor_rnn.jpg\",\"datePublished\":\"2018-03-15T07:58:09+00:00\",\"dateModified\":\"2024-05-06T02:46:18+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010TensorFlow\u3011RNN\u306e\u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u6311\u6226\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/45994#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/45994\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/45994#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/03\\\/tensor_rnn.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/03\\\/tensor_rnn.jpg\",\"width\":700,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/45994#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010TensorFlow\u3011RNN\u306e\u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u6311\u6226\uff01\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"description\":\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\",\"name\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":600,\"height\":600,\"caption\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\",\"https:\\\/\\\/x.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\\\/featured\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\",\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\"},\"description\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u587e\u306f\u300c\u4eba\u751f\u3092\u5909\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u300d\u3092\u30b3\u30f3\u30bb\u30f3\u30d7\u30c8\u306b\u3001\u904e\u53bb\u591a\u304f\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u8f29\u51fa\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\u3067\u306f\u6280\u8853\u7cfb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u5fc3\u306b\u6709\u7528\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-tech\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010TensorFlow\u3011RNN\u306e\u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u6311\u6226\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010TensorFlow\u3011RNN\u306e\u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u6311\u6226\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sejuku.net\/blog\/45994","og_locale":"ja_JP","og_type":"article","og_title":"\u3010TensorFlow\u3011RNN\u306e\u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u6311\u6226\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010TensorFlow\u3011RNN\u306e\u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u6311\u6226\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","og_url":"https:\/\/www.sejuku.net\/blog\/45994","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_published_time":"2018-03-15T07:58:09+00:00","article_modified_time":"2024-05-06T02:46:18+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tensor_rnn.jpg","type":"image\/jpeg"}],"author":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/45994#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/45994"},"author":{"name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095"},"headline":"\u3010TensorFlow\u3011RNN\u306e\u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u6311\u6226\uff01","datePublished":"2018-03-15T07:58:09+00:00","dateModified":"2024-05-06T02:46:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/45994"},"wordCount":168,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/45994#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tensor_rnn.jpg","articleSection":["Python\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/45994","url":"https:\/\/www.sejuku.net\/blog\/45994","name":"\u3010TensorFlow\u3011RNN\u306e\u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u6311\u6226\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/45994#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/45994#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tensor_rnn.jpg","datePublished":"2018-03-15T07:58:09+00:00","dateModified":"2024-05-06T02:46:18+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010TensorFlow\u3011RNN\u306e\u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u6311\u6226\uff01 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","breadcrumb":{"@id":"https:\/\/www.sejuku.net\/blog\/45994#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/45994"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/45994#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tensor_rnn.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/tensor_rnn.jpg","width":700,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/45994#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u3010TensorFlow\u3011RNN\u306e\u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u6311\u6226\uff01"}]},{"@type":"WebSite","@id":"https:\/\/www.sejuku.net\/blog\/#website","url":"https:\/\/www.sejuku.net\/blog\/","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002","publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sejuku.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.sejuku.net\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793eSAMURAI","url":"https:\/\/www.sejuku.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":600,"height":600,"caption":"\u682a\u5f0f\u4f1a\u793eSAMURAI"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sejuku2013","https:\/\/x.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g\/featured"]},{"@type":"Person","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095","name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","caption":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8"},"description":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u587e\u306f\u300c\u4eba\u751f\u3092\u5909\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u300d\u3092\u30b3\u30f3\u30bb\u30f3\u30d7\u30c8\u306b\u3001\u904e\u53bb\u591a\u304f\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u8f29\u51fa\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\u3067\u306f\u6280\u8853\u7cfb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u5fc3\u306b\u6709\u7528\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002","url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-tech"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/45994","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/users\/16433"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=45994"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/45994\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/46019"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=45994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=45994"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=45994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}