Open tund opened 6 years ago
Hi @vannguyennd , as discussed, the procedure of adding the Character-RNN with Numpy implementation is as follows:
char_rnn.py
in male\models\deep_learning\generative
CharRNN
. We can follow some existing implementations such as GLM
and RBM
. Some important points are:
CharRNN
inherits from Model
: Class CharRNN(Model):
_init()
and _init_params()
_fit_loop()
.test_char_rnn.py
in tests/male/models/deep_learning/generative/
Can follow test_glm.py
. An example of usage:
model = CharRNN(num_hidden=50, learning_rate=0.01)
model.fit(X) # X is the training data
model.sample(num_chars=1000)
Please have a look and estimate the datetime you can finish. If there's something unclear, you can leave comments here. Many thanks!
Character-based RNNs implemented in Numpy and Tensorflow are great models to serve as examples for many presentations on sequential data. They are also good for demonstrations and practice of "How to add a new model" tutorial.