资源算法char_rnn_karpathy_keras

char_rnn_karpathy_keras

2020-01-16 | |  116 |   0 |   0

A keras implementation of Karpathys char-rnn (https://github.com/karpathy/char-rnn) Although keras already had a text generation example (https://github.com/fchollet/keras/blob/master/examples/lstm_text_generation.py) using RNNs, it is trained in a many-to-one fashion, where was the original karpathy implementation was in a many-to-many manner. This implementation follows Karpathys style and uses a time distribute dense layer at the output.

To understand it better. consider this, in the keras text generation example ;

input is "where ar" and target is "e"

in this implementation

input is "where ar" and target is "here are" ( ie target is a sequence one shifted in position)

I have also added an ipynb notebook, hoping to add more details with some figures when I get some free time


上一篇:char-rnn-tf

下一篇:blocks-char-rnn

用户评价
全部评价

热门资源

  • allennlp-server

    allennlp-server Serve allennlp services as sep...

  • ubuntu-allennlp

    ubuntu-allennlp AllenAI AllenNLP image based o...

  • allennlp_extras

    allennlp_extras Some utilities build on top of...

  • allennlp-dureader

    An Apache 2.0 NLP research library, built on Py...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...