tree: d9fbb0374e8eab74c542e3cfc853f36dd93b635b [path history] [tgz]
  1. src/
  2. test/
  3. .gitignore
  4. get_data.sh
  5. project.clj
  6. README.md
contrib/clojure-package/examples/rnn/README.md

rnn

Demonstration of LSTM RNN trainined using Obamas text

Installation

Before you run this example, make sure that you have the clojure package installed. In the main clojure package directory, do lein install. Then you can run lein install in this directory.

Usage

run `./get_data.sh to download the training corpus as well as pretrained model.

Run lein run to start training the corpus from scratch for 2 epochs and then show the result of training after 75 epochs (cpu)

You can control the devices you run on by doing:

lein run :cpu 2 - This will run on 2 cpu devices lein run :gpu 1 - This will run on 1 gpu device lein run :gpu 2 - This will run on 2 gpu devices