Using LIBSVM under Linux

Source: Internet
Author: User

1. sudo apt-get install Python-pip

2. sudo apt-get install Python-dev

3. sudo apt-get install gnuplot

4. Download libsvm-3.20 Extract, add this extract folder CP to/usr/bin

5. Which gnuplot view the path result for this command is/usr/bin/gnuplot

Then look at the two files under Libsvm-3.20/python easy.py and grid.py about gnuplot in the path Gnuplot_exe = "/usr/bin/gnuplot" and just which out of the same result, so no need to modify

6. Go to/user/bin/libsvm-3.20 to execute make

7. Go to/user/bin/libsvm-3.20/python to execute make

8. Download the installation apt-get install Libsvm-tools

9. Enter the/usr/bin/libsvm-3.20/tools directory

Parameters of the tuning c,g

Python grid.py file name

C For example, 0.0005 for the G.

10. Derive the SVM model

Svm-train-c 5000-g 0.0005 Training set file name Train.model

11. Testing the SVM model

Svm-predict Test Set file name Train.model test.predict

Using LIBSVM under Linux

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.