.. -*- mode: rst -*-
|Travis|_ |PyPi|_
.. |Travis| image:: https://travis-ci.com/ocampor/libsvm.svg?branch=master
.. _Travis: https://travis-ci.com/ocampor/libsvm
.. |PyPi| image:: https://img.shields.io/pypi/dm/libsvm?color=blue :alt: PyPI - Downloads
.. _PyPi: https://pypi.org/project/libsvm/
LibSVM
======
Description
-----------
Pre-built LibSVM packages for Python.
What is LibSVM?
---------------
Crated by Chih-Chung Chang and Chih-Jen Lin, LIBSVM is an integrated
software for support vector classification, (C-SVC, nu-SVC), regression
(epsilon-SVR, nu-SVR) and distribution estimation (one-class SVM). It
supports multi-class classification.
Original Links
--------------
- Repository: https://github.com/cjlin1/libsvm
- Library website: https://www.csie.ntu.edu.tw/~cjlin/libsvm
Purpose of this package
-----------------------
The idea behind this package is to use the same code as in
https://github.com/cjlin1/libsvm using the very convenient pip command
How to install
--------------
::
pip install libsvm
Example
-------
1. Download https://github.com/cjlin1/libsvm/blob/master/heart_scale
file.
2. Run the following commands
::
>>> from libsvm.svmutil import *
>>> y, x = svm_read_problem('path/to/heart_scale')
>>> m = svm_train(y[:200], x[:200], '-c 4')
*.*
optimization finished, #iter = 257
nu = 0.351161
obj = -225.628984, rho = 0.636110
nSV = 91, nBSV = 49
Total nSV = 91
>>> p_label, p_acc, p_val = svm_predict(y[200:], x[200:], m)
Accuracy = 84.2857% (59/70) (classification)
Windows
-------
The package contains a pre-built Windows binary that is only compatible with 64 bits architecture; therefore,
32 bits architecture is not compatible.
Cygwin
______
In case that you want to install this package using Cygwin, you have to make sure that the
following packages are installed:
1. gcc-g++ >= 7.0.0
2. python38
3. python38-devel
4. python38-pip
Some good tutorials to install Cygwin packages are the following:
- https://wiki.usask.ca/display/MESH/Running+Python+from+the+Cygwin+Terminal
- https://www.davidbaumgold.com/tutorials/set-up-python-windows/#installing-cygwin
Copyright
---------
Copyright (c) 2000-2018 Chih-Chung Chang and Chih-Jen Lin All rights
reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither name of copyright holders nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Maintainer
----------
- Ricardo Ocampo `me@ocampor.ai`_
.. _me@ocampor.ai: me@ocampor.ai
Raw data
{
"_id": null,
"home_page": "https://github.com/ocampor/libsvm",
"name": "libsvm",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.5",
"maintainer_email": "",
"keywords": "",
"author": "Ricardo Ocampo",
"author_email": "me@ocampor.ai",
"download_url": "https://files.pythonhosted.org/packages/4b/11/c7700d0cd3a21eef2d7d996256277fc640ccd4f84717c10228cb6c1567dc/libsvm-3.23.0.4.tar.gz",
"platform": "",
"description": ".. -*- mode: rst -*-\n\n|Travis|_ |PyPi|_\n\n.. |Travis| image:: https://travis-ci.com/ocampor/libsvm.svg?branch=master\n.. _Travis: https://travis-ci.com/ocampor/libsvm\n\n.. |PyPi| image:: https://img.shields.io/pypi/dm/libsvm?color=blue :alt: PyPI - Downloads\n.. _PyPi: https://pypi.org/project/libsvm/\n\nLibSVM\n======\n\nDescription\n-----------\n\nPre-built LibSVM packages for Python.\n\nWhat is LibSVM?\n---------------\n\nCrated by Chih-Chung Chang and Chih-Jen Lin, LIBSVM is an integrated\nsoftware for support vector classification, (C-SVC, nu-SVC), regression\n(epsilon-SVR, nu-SVR) and distribution estimation (one-class SVM). It\nsupports multi-class classification.\n\nOriginal Links\n--------------\n\n- Repository: https://github.com/cjlin1/libsvm\n- Library website: https://www.csie.ntu.edu.tw/~cjlin/libsvm\n\nPurpose of this package\n-----------------------\n\nThe idea behind this package is to use the same code as in\nhttps://github.com/cjlin1/libsvm using the very convenient pip command\n\nHow to install\n--------------\n\n::\n\n pip install libsvm\n\nExample\n-------\n\n1. Download https://github.com/cjlin1/libsvm/blob/master/heart_scale\n file.\n2. Run the following commands\n\n::\n\n >>> from libsvm.svmutil import *\n >>> y, x = svm_read_problem('path/to/heart_scale')\n >>> m = svm_train(y[:200], x[:200], '-c 4')\n *.*\n optimization finished, #iter = 257\n nu = 0.351161\n obj = -225.628984, rho = 0.636110\n nSV = 91, nBSV = 49\n Total nSV = 91\n >>> p_label, p_acc, p_val = svm_predict(y[200:], x[200:], m)\n Accuracy = 84.2857% (59/70) (classification)\n\nWindows\n-------\n\nThe package contains a pre-built Windows binary that is only compatible with 64 bits architecture; therefore,\n32 bits architecture is not compatible.\n\nCygwin\n______\n\nIn case that you want to install this package using Cygwin, you have to make sure that the\nfollowing packages are installed:\n\n1. gcc-g++ >= 7.0.0\n2. python38\n3. python38-devel\n4. python38-pip\n\nSome good tutorials to install Cygwin packages are the following:\n\n- https://wiki.usask.ca/display/MESH/Running+Python+from+the+Cygwin+Terminal\n- https://www.davidbaumgold.com/tutorials/set-up-python-windows/#installing-cygwin\n\nCopyright\n---------\n\nCopyright (c) 2000-2018 Chih-Chung Chang and Chih-Jen Lin All rights\nreserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n1. Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.\n\n3. Neither name of copyright holders nor the names of its contributors\n may be used to endorse or promote products derived from this software\n without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\nPARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR\nCONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\nEXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\nPROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\nPROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\nLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\nNEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nMaintainer\n----------\n\n- Ricardo Ocampo `me@ocampor.ai`_\n\n.. _me@ocampor.ai: me@ocampor.ai",
"bugtrack_url": null,
"license": "Apache 2.0",
"summary": "Pre-built LibSVM packages for Python.",
"version": "3.23.0.4",
"project_urls": {
"Homepage": "https://github.com/ocampor/libsvm"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4b11c7700d0cd3a21eef2d7d996256277fc640ccd4f84717c10228cb6c1567dc",
"md5": "ceacc0ad04285e96af4f9e62598101f5",
"sha256": "ea61c748b7baa75d7de8d8d3278614a0f66f32830e6828dd307fc69d20210463"
},
"downloads": -1,
"filename": "libsvm-3.23.0.4.tar.gz",
"has_sig": false,
"md5_digest": "ceacc0ad04285e96af4f9e62598101f5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.5",
"size": 170559,
"upload_time": "2020-03-22T11:18:13",
"upload_time_iso_8601": "2020-03-22T11:18:13.742910Z",
"url": "https://files.pythonhosted.org/packages/4b/11/c7700d0cd3a21eef2d7d996256277fc640ccd4f84717c10228cb6c1567dc/libsvm-3.23.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2020-03-22 11:18:13",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ocampor",
"github_project": "libsvm",
"travis_ci": true,
"coveralls": false,
"github_actions": false,
"lcname": "libsvm"
}