{"id":15033749,"url":"https://github.com/xtra-computing/thundersvm","last_synced_at":"2025-05-14T18:06:07.767Z","repository":{"id":24451405,"uuid":"27853951","full_name":"Xtra-Computing/thundersvm","owner":"Xtra-Computing","description":"ThunderSVM: A Fast SVM Library on GPUs and CPUs","archived":false,"fork":false,"pushed_at":"2024-04-01T08:11:14.000Z","size":4992,"stargazers_count":1597,"open_issues_count":87,"forks_count":223,"subscribers_count":55,"default_branch":"master","last_synced_at":"2025-05-11T10:48:40.640Z","etag":null,"topics":["c-plus-plus","classification","cuda","gpu","libsvm","one-class-learning","regression"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Xtra-Computing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-12-11T04:24:04.000Z","updated_at":"2025-05-03T12:25:27.000Z","dependencies_parsed_at":"2022-07-22T06:01:57.302Z","dependency_job_id":"cd940add-2589-4e99-8d81-ef4f71db5e0a","html_url":"https://github.com/Xtra-Computing/thundersvm","commit_stats":{"total_commits":806,"total_committers":35,"mean_commits":23.02857142857143,"dds":0.6637717121588089,"last_synced_commit":"49f4b8ab9426c750e2c1ee9cb2d1f2eca0549bc4"},"previous_names":["zeyiwen/thundersvm"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xtra-Computing%2Fthundersvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xtra-Computing%2Fthundersvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xtra-Computing%2Fthundersvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xtra-Computing%2Fthundersvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xtra-Computing","download_url":"https://codeload.github.com/Xtra-Computing/thundersvm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254198514,"owners_count":22030965,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-plus-plus","classification","cuda","gpu","libsvm","one-class-learning","regression"],"created_at":"2024-09-24T20:22:37.781Z","updated_at":"2025-05-14T18:06:02.757Z","avatar_url":"https://github.com/Xtra-Computing.png","language":"C++","readme":"[![Build Status](https://travis-ci.org/Xtra-Computing/thundersvm.svg?branch=master)](https://travis-ci.org/zeyiwen/thundersvm)\n[![Build status](https://ci.appveyor.com/api/projects/status/e9yoehx7orsrsh89/branch/master?svg=true)](https://ci.appveyor.com/project/shijiashuai/thundersvm/branch/master)\n[![GitHub license](https://img.shields.io/badge/license-apache2-yellowgreen)](./LICENSE)\n[![Documentation Status](https://readthedocs.org/projects/thundersvm/badge/?version=latest)](https://thundersvm.readthedocs.org)\n[![GitHub issues](https://img.shields.io/github/issues/Xtra-Computing/thundersvm.svg)](https://github.com/Xtra-Computing/thundersvm/issues)\n[![PyPI version](https://badge.fury.io/py/thundersvm.svg)](https://badge.fury.io/py/thundersvm)\n[![Downloads](https://pepy.tech/badge/thundersvm)](https://pepy.tech/project/thundersvm)\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://github.com/Xtra-Computing/thundersvm/raw/master/docs/_static/logo.png\" width=\"240\" height=\"220\" align=left/\u003e\n\u003cimg src=\"https://github.com/Xtra-Computing/thundersvm/raw/master/docs/_static/lang-logo.png\" width=\"250\" height=\"200\" align=left/\u003e\n\u003cimg src=\"https://github.com/Xtra-Computing/thundersvm/raw/master/docs/_static/overall.png\" width=\"250\" height=\"200\" align=left/\u003e\n\u003c/div\u003e\n\n## What's new\n- We have recently released [ThunderGBM](https://github.com/Xtra-Computing/thundergbm), a fast GBDT and Random Forest library on GPUs.\n- add scikit-learn interface, see [here](https://github.com/Xtra-Computing/thundersvm/tree/master/python)\n## Overview\nThe mission of ThunderSVM is to help users easily and efficiently apply SVMs to solve problems. ThunderSVM exploits GPUs and multi-core CPUs to achieve high efficiency. Key features of ThunderSVM are as follows.\n* Support all functionalities of LibSVM such as one-class SVMs, SVC, SVR and probabilistic SVMs.\n* Use same command line options as LibSVM.\n* Support [Python](python/), [R](R/), [Matlab](Matlab/) and [Ruby](https://github.com/ankane/thundersvm) interfaces.\n* Supported Operating Systems: Linux, Windows and MacOS.\n\n**Why accelerate SVMs**: A [survey](https://www.kaggle.com/amberthomas/kaggle-2017-survey-results) conducted by Kaggle in 2017 shows that 26% of the data mining and machine learning practitioners are users of SVMs.\n\n[Documentation](docs/index.md) | [Installation](docs/get-started.md#installation) | [API Reference (doxygen)](http://Xtra-Computing.github.io/thundersvm/)\n## Contents\n- [Getting Started](https://github.com/Xtra-Computing/thundersvm#getting-started)\n- [Working without GPUs](docs/get-started.md#working-without-gpus)\n## Getting Started\n\n### Prerequisites\n* cmake 2.8 or above\n* gcc 4.8 or above for Linux and MacOS\n* Visual C++ for Windows\n\nIf you want to use GPUs, you also need to install CUDA.\n\n* [CUDA](https://developer.nvidia.com/cuda-downloads) 7.5 or above\n\n### Quick Install\nDownload the Python wheel file (For Python3 or above).\n\n* For Linux\n\n    * `pip install thundersvm` for CUDA 9.0 - linux_x86_64\n\n    * [CPU - linux_x86_64](https://github.com/Xtra-Computing/thundersvm/blob/d38af58e0ceb7e5d948f3ef7d2c241ba50133ee6/python/dist/thundersvm-cpu-0.2.0-py3-none-linux_x86_64.whl)\n\n* For Windows (64bit)\n\n    * [CUDA 10.0 - win64](https://github.com/Xtra-Computing/thundersvm/blob/d38af58e0ceb7e5d948f3ef7d2c241ba50133ee6/python/dist/thundersvm-cu10-0.2.0-py3-none-win_amd64.whl)\n\n    * [CPU - win64](https://github.com/Xtra-Computing/thundersvm/blob/d38af58e0ceb7e5d948f3ef7d2c241ba50133ee6/python/dist/thundersvm-cpu-0.2.0-py3-none-win_amd64.whl)\n\nInstall the Python wheel file.\n```bash\npip install thundersvm-cu90-0.2.0-py3-none-linux_x86_64.whl\n```\n##### Example\n```python\nfrom thundersvm import SVC\nclf = SVC()\nclf.fit(x, y)\n```\n### Download\n```bash\ngit clone https://github.com/Xtra-Computing/thundersvm.git\n```\n### Build on Linux (build [instructions](docs/get-started.md#installation-for-macos) for MacOS and Windows)\n##### ThunderSVM on GPUs\n```bash\ncd thundersvm\nmkdir build \u0026\u0026 cd build \u0026\u0026 cmake .. \u0026\u0026 make -j\n```\n\nIf you run into issues that can be traced back to your version of gcc, use `cmake` with a version flag to force gcc 6. That would look like this:\n\n```bash\ncmake -DCMAKE_C_COMPILER=gcc-6 -DCMAKE_CXX_COMPILER=g++-6 ..\n```\n\n\n##### ThunderSVM on CPUs\n```bash\n# in thundersvm root directory\ngit submodule init eigen \u0026\u0026 git submodule update\nmkdir build \u0026\u0026 cd build \u0026\u0026 cmake -DUSE_CUDA=OFF .. \u0026\u0026 make -j\n```\nIf ```make -j``` doesn't work, please simply use ```make```. The number of CPU cores to use can be specified by the ```-o``` option (e.g., ```-o 10```), and refer to [Parameters](docs/parameters.md) for more information.\n\n### Quick Start\n```bash\n./bin/thundersvm-train -c 100 -g 0.5 ../dataset/test_dataset.txt\n./bin/thundersvm-predict ../dataset/test_dataset.txt test_dataset.txt.model test_dataset.predict\n```\nYou will see `Accuracy = 0.98` after successful running.\n\n## How to cite ThunderSVM\nIf you use ThunderSVM in your paper, please cite our work ([full version](https://github.com/Xtra-Computing/thundersvm/blob/master/thundersvm-full.pdf)).\n```\n@article{wenthundersvm18,\n author = {Wen, Zeyi and Shi, Jiashuai and Li, Qinbin and He, Bingsheng and Chen, Jian},\n title = {{ThunderSVM}: A Fast {SVM} Library on {GPUs} and {CPUs}},\n journal = {Journal of Machine Learning Research},\n volume={19},\n pages={797--801},\n year = {2018}\n}\n```\n\n## Other publications\n* Zeyi Wen, Jiashuai Shi, Bingsheng He, Yawen Chen, and Jian Chen. Efficient Multi-Class Probabilistic SVMs on GPUs. IEEE Transactions on Knowledge and Data Engineering (TKDE), 2018.\n* Zeyi Wen, Bingsheng He, Kotagiri Ramamohanarao, Shengliang Lu, and Jiashuai Shi. Efficient Gradient Boosted Decision Tree Training on GPUs. The 32nd IEEE International Parallel and Distributed Processing Symposium (IPDPS), pages 234-243, 2018.\n* Borui Xu, Zeyi Wen, Lifeng Yan, Zhan Zhao, Zekun Yin, Weiguo Liu, Bingsheng He. Leveraging Data Density and Sparsity for Efficient SVM Training on GPUs. The 23rd IEEE International Conference on Data Mining (ICDM), 2023.\n\n## Related websites\n* [LibSVM](https://www.csie.ntu.edu.tw/~cjlin/libsvm/) | [SVM\u003csup\u003elight\u003c/sup\u003e](http://svmlight.joachims.org/) | [OHD-SVM](https://github.com/OrcusCZ/OHD-SVM) | [NVIDIA Machine Learning](http://www.nvidia.com/object/machine-learning.html) | [ThunderGBM](https://github.com/Xtra-Computing/thundergbm)\n\n## Acknowledgement\n* We acknowledge NVIDIA for their hardware donations.\n* This project is hosted by NUS, collaborating with Prof. Jian Chen (South China University of Technology). Initial work of this project was done when Zeyi Wen worked at The University of Melbourne.\n* This work is partially supported by a MoE AcRF Tier 1 grant (T1 251RES1610) in Singapore.\n* We also thank the authors of LibSVM and OHD-SVM which inspire our algorithmic design.\n\n## Selected projects that use ThunderSVM\n[1] Scene Graphs for Interpretable Video Anomaly Classification (published in NeurIPS18)\n\n[2] 3D semantic segmentation for high-resolution aerial survey derived point clouds using deep learning. (published in ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems, 2018).\n\n[3] Performance Comparison of Machine Learning Models for DDoS Attacks Detection. (published in IEEE International Computer Science and Engineering Conference (ICSEC), 2018).\n\n[4] Kernel machines that adapt to GPUs for effective large batch training. (in arXiv preprint arXiv:1806.06144, 2018).\n\n[5] Sampling Bias in Deep Active Classification: An Empirical Study. (in arXiv preprint arXiv:1909.09389, 2019).\n\n[6] Machine Learning-Based Fast Banknote Serial Number Recognition Using Knowledge Distillation and Bayesian Optimization. (published in Sensors 19.19:4218, 2019).\n\n[7] Classification for Device-free Localization based on Deep Neural Networks. (in Diss. The University of Aizu, 2019).\n\n[8] An accurate and robust approach of device-free localization with convolutional autoencoder. (published in IEEE Internet of Things Journal 6.3:5825-5840, 2019).\n\n[9] Accounting for part pose estimation uncertainties during trajectory generation for part pick-up using mobile manipulators. (published in IEEE International Conference on Robotics and Automation (ICRA), 2019).\n\n[10] Genetic improvement of GPU code. (published in IEEE/ACM International Workshop on Genetic Improvement (GI), 2019). The source code of ThunderSVM is used as a benchmark.\n\n[11] Dynamic Multi-Resolution Data Storage. (published in IEEE/ACM International Symposium on Microarchitecture, 2019). The source code of ThunderSVM is used as a benchmark.\n\n[12] Hyperparameter Estimation in SVM with GPU Acceleration for Prediction of Protein-Protein Interactions. (published in IEEE International Conference on Big Data, 2019).\n\n[13] Texture Selection for Automatic Music Genre Classification. (published in Applied Soft Computing, 2020).\n\n[14] Evolving Switch Architecture toward Accommodating In-Network Intelligence. (published in IEEE Communications Magazine 58.1: 33-39, 2020).\n\n[15] Block-Sparse Coding Based Machine Learning Approach for Dependable Device-Free Localization in IoT Environment. (published in IEEE Internet of Things Journal, 2020).\n\n[16] An adaptive trust boundary protection for IIoT networks using deep-learning feature extraction based semi-supervised model. (published in IEEE Transactions on Industrial Informatics, 2020).\n\n[17] Performance Prediction for Multi-Application Concurrency on GPUs. (published in IEEE International Symposium on Performance Analysis of Systems and Software (ISPASS), 2020).\n\n[18] Tensorsvm: accelerating kernel machines with tensor engine. (published in ACM International Conference on Supercomputing (ICS), 2020).\n\n[19] GEVO: GPU Code Optimization Using Evolutionary Computation. (published in ACM Transactions on Architecture and Code Optimization (TACO), 2020).\n\n[20] CRISPRpred (SEQ): a sequence-based method for sgRNA on target activity prediction using traditional machine learning. (published in BMC bioinformatics, 2020).\n\n[21] Prediction of gas concentration using gated recurrent neural networks. (published in IEEE International Conference on Artificial Intelligence Circuits and Systems (AICAS), 2020).\n\n[22] Design powerful predictor for mRNA subcellular location prediction in Homo sapiens. (published in Briefings in Bioinformatics, 2021).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtra-computing%2Fthundersvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtra-computing%2Fthundersvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtra-computing%2Fthundersvm/lists"}