Torch7 installation and configuration in Ubuntu, torch7ubuntu Configuration

Source: Internet
Author: User
Tags svm

Torch7 installation and configuration in Ubuntu, torch7ubuntu Configuration

The main purpose of this series of Torch7 tutorials is to introduce how to use Torch. Today, we will first share the installation of Torch7. (Install torch7 in Ubuntu14.04)

Why Torch?

Torch aims to achieve maximum flexibility and speed while establishing scientific algorithms. This process is very simple. Torch has a big community drive package ecosystem that involves machine learning, computer vision, signal processing, parallel processing, images, videos, audios and networks, and is built on the basis of the Lua community.

The core of Torch is popular Neural Networks and optimized libraries, which are easy to use and provide maximum flexibility in implementing complex neural network topologies. You can create any neural network diagram and perform parallel operations on CPUs and GPUs.

Before installation, make sure that you install the git tool in Ubuntu. Press Ctrl + Alt + T to open the terminal, enter git under the terminal, and add the terminal output.

It indicates that git is not installed on your system. Enter sudo apt install git in the terminal to install the SDK, as shown in.

After confirming that the git tool is successfully installed, you can start to install Torch7!

Step 1:

Obtain the dependency packages required for installing LuaJIT (Lua interpreter written in C) and Torch. The Code is as follows: git clone https://github.com/torch/distro.git ~ /Torch -- recursive is shown in.

Step 2:

By default, the dependency package is downloaded to the torch file in the current path. In the torch folder, open and execute the commands in install-deps (this command may take a long time, don't worry ). The Code is as follows:

Step 3:

Run the install. sh file, as shown in.


 

Terminal prompt:

Do you want to automatically prepend the Torch install location to PATH and LD_LIBRARY_PATH in your/home/guodongwei/. bashrc? (Yes/no)

Enter yes, as shown in.

Step 4:

Manually add the PATH to the PATH variable:

Then,

Step 5:

Check whether the installation is successful. Enter the th command on the terminal. If yes, the installation is successful.

Now, even if Torch7 is successfully installed, you can use it to perform your own machine learning tasks. Next, we will analyze Torch7de in detail.

 

Previous essays-click to View Details

Understand convolutional neural networks (CNN)

EM Algorithm

Convolutional Neural Networks

Gradient Boosting)

First understanding of Support Vector Machine (SVM)-1

Support Vector Machine (SVM) (2)

Statistics on the use of distance and similarity measurement in Machine Learning

Feature learning-convolutional Neural Network

Support Vector Machine (SVM) -- 3

Support Vector Machine (SVM) -- (4)

Support Vector Machine (SVM)-Mercer theorem and loss function-5

Support Vector Machine SMO-------7

Classic machine learning Book recommendation

Python scientific computing (Book Recommendation)

Python: Common machine learning frameworks

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.