diff options
author | Clement Farabet <clement.farabet@gmail.com> | 2011-08-29 03:58:36 +0400 |
---|---|---|
committer | Clement Farabet <clement.farabet@gmail.com> | 2011-08-29 03:58:36 +0400 |
commit | 357829243d61169f719144231bb0260cbde52404 (patch) | |
tree | d1bd8a9e86604e6ee8047d0361956e3d17be59d0 | |
parent | 2cd71bc5e355f299000ea4b4403dcd52aa1a36db (diff) |
Changed README.
-rw-r--r-- | README.md | 67 | ||||
-rw-r--r-- | README.txt | 13 |
2 files changed, 67 insertions, 13 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..f30f5b9 --- /dev/null +++ b/README.md @@ -0,0 +1,67 @@ +# nnx: an Xperimental package for neural network modules + optimizations + +The original neural network from Torch7, 'nn', contains stable and widely +used modules. 'nnx' contains more experimental, unproven modules, and +optimizations. Eventually, modules that become stable enough will make +their way into 'nn' (some already have). + +## Install dependencies + +1/ third-party libraries: + +On Linux (Ubuntu > 9.04): + +``` sh +$ apt-get install gcc g++ git libreadline5-dev cmake wget +``` + +On Mac OS (Leopard, or more), using [Homebrew](http://mxcl.github.com/homebrew/): + +``` sh +$ brew install git readline cmake wget +``` + +2/ Lua 5.1 + Luarocks + xLua: + +``` sh +$ git clone https://github.com/clementfarabet/lua4torch +$ cd lua4torch +$ make install PREFIX=/usr/local +``` + +3/ nnx: + +Note: this automatically installs Torch7+nn, and other Lua dependencies. + +``` sh +$ luarocks install nnx +``` + +## Use the library + +First run xlua, and load nnx: + +``` sh +$ xlua +``` + +``` lua +> require 'nnx' +``` + +Once loaded, tab-completion will help you navigate through the +library (note that most function are added directly to nn): + +``` lua +> nnx. + TAB +... +> nn. + TAB +``` + +In particular, it's good to verify that all modules provided pass their +tests: + +``` lua +> nnx.test_all() +> nnx.test_omp() +``` diff --git a/README.txt b/README.txt deleted file mode 100644 index 6f183e9..0000000 --- a/README.txt +++ /dev/null @@ -1,13 +0,0 @@ - -INSTALL: -$ luarocks --from=http://data.neuflow.org/lua/rocks install nnx - -USE: -> require 'nnx' -> n1 = nn.SpatialLinear(16,4) - --- run tests: -> nnx.test_all() -... -> nnx.test_omp() -... |