Recurrent neural networks (RNN) are widely used for modelling sequential data, e.g., natural language sentences. This example describes how to implement a RNN application (or model) using SINGA's RNN layers. We will use the char-rnn model as an example, which trains over sentences or source code, with each character as an input unit. Particularly, we will train a RNN over Linux kernel source code.
Prepare the dataset. Download the kernel source code. Other plain text files can also be used.
Start the training,
python train.py linux_input.txt
Some hyper-parameters could be set through command line,
python train.py -h