/torch7-distro

Torch7: state-of-the-art machine learning algorithms

Primary LanguageCOtherNOASSERTION

Torch7 Library.

Torch7 provides a Matlab-like environment for state-of-the-art machine learning algorithms. It is easy to use and provides a very efficient implementation, thanks to an easy and fast scripting language (Lua) and a underlying C implementation.

In order to install Torch7 you can follow these simple instructions, but we suggest reading the detailed manual at http://www.torch.ch/manual/install/index

Requirements

  • C/C++ compiler
  • cmake
  • gnuplot
  • git

Optional

  • Readline
  • QT (QT4.8 is now supported)
  • CBLAS
  • LAPACK

Install dependencies on Linux (Ubuntu > 9.04):

1/ Basic tools

$ apt-get install gcc g++ git libreadline-dev cmake wget

2/ QT4 (at least 4.4)

$ apt-get install libqt4-core libqt4-gui libqt4-dev

3/ Extras

$ apt-get install ffmpeg gnuplot

Install dependencies on Mac OS X > 10.5:

0/ Install the dev tools (gcc/g++ from Apple), and we highly recommend to get Homebrew (http://mxcl.github.com/homebrew/) as a replacement for MacPorts.

1/ Basic tools, using Homebrew:

$ brew install git readline cmake wget

2/ Install QT4 (at least 4.4)

$ brew install qt

3/ Extras

$ brew install ffmpeg gnuplot

Installation

$ git clone git://github.com/mzweilin/torch7-distro.git
$ cd torch7-distro
$ mkdir build
$ cd build

$ cmake .. 
OR
$ cmake .. -DCMAKE_INSTALL_PREFIX=/my/install/path

$make install

Running

$torch
Type help() for more info
Torch 7.0  Copyright (C) 2001-2011 Idiap, NEC Labs, NYU
Lua 5.1  Copyright (C) 1994-2008 Lua.org, PUC-Rio
t7> 
t7> <Ctrl+D>
Really quit [y/N]? y
$ 

3rd Party Packages

Torch7 comes with a package manager based on Luarocks. With it it's easy to install new packages:

$ torch-rocks install image
$ torch-rocks list
$ torch-rocks search --all

Documentation

The full documentation is installed in /my/install/path/share/torch/html/index.html

Also, http://www.torch.ch/manual/index points to the latest documentation of Torch7.