What is Shark?
SHARK is a fast, modular, feature-rich open-source C++ machine learning library
website:http://image.diku.dk/shark/sphinx_pages/build/html/index.html
Because of Installing Shark depending on Boost and CMake
Install steps for Shark:
1. install the dependency software
sudo apt-get install cmake 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
?
更多文章、技術交流、商務合作、聯系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號聯系: 360901061
您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對您有幫助就好】元
