The steps for installing shark

Source: Internet
Author: User

What is shark?

Shark is a fast, modular, feature-rich open-source C ++ Machine Learning Library

Because of installing shark depending on boost and cmake

Install steps for shark:
1. Install the dependency Software
Sudo apt-Get install cmake-Curses-Gui libatlas-base-dev libboost-all-Dev

2. Download the shark SRC
SVN Co https://svn.code.sf.net/p/shark-project/code/trunk/Shark

3. Enter the shark directory
CD shark

4. cmake the SRC
Cmake-dopt_enable_atlas = on-dopt_enable_openmp = on

If you have a custom/manual boost installation, please identify your boost include and library directories and use instead:

Ccmake-dboost_no_system_paths = true-dboost_includedir =/path/to/Boost/include/-dboost_librarydir =/path/to/Boost/lib/<shark_src_dir>

5. Compiling the SRC
Make

6. Verify the installation finished.
Make Test (ctest)

If all the tests passed, it will print the following log:

Start 1: blas_iterators
1/166 test #1: blas_iterators ...... passed 0.06 Sec
Start 2: blas_vector_assign
2/166 test #2: blas_vector_assign ...... passed 0.06 Sec
Start 3: blas_matrix_assign
3/166 test #3: blas_matrix_assign ...... passed 0.04 Sec
Start 4: blas_compressed_vector
4/166 test #4: blas_compressed_vector ...... passed 0.03 Sec
Start 5: blas_compressed_matrix
5/166 test #5: blas_compressed_matrix ...... passed 0.24 Sec
Start 6: blas_vector_proxy
6/166 test #6: blas_vector_proxy ...... passed 0.07 Sec
Start 7: blas_matrix_proxy
7/166 test #7: blas_matrix_proxy ...... passed 0.05 Sec
Start 8: blas_vector_expression
8/166 test #8: blas_vector_expression ...... passed 0.28 Sec
Start 9: blas_axpy_prod
9/166 test #9: blas_axpy_prod ...... passed 0.54 Sec
Start 10: blas_triangular_prod
10/166 test #10: blas_triangular_prod ...... passed 0.06 Sec
......

Start 164: rbm_pcdtraining
164/166 test #164: rbm_pcdtraining ...... passed 1.30 Sec
Start 165: rbm_contrastivedivergencetraining
165/166 test #165: rbm_contrastivedivergencetraining ...... passed 4.20 Sec
Start 166: rbm_exactgradienttraining
166/166 test #166: rbm_exactgradienttraining ...... passed 1.53 Sec

100% Tests passed, 0 tests failed out of 166

Total test time (real) = 546.67 Sec

 

The steps for installing shark

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.