Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.9%) to scientific vocabulary
Keywords
libsvm
machine-learning
python
regression
svm-classifier
Last synced: 6 months ago
·
JSON representation
Repository
Pre-built LibSVM packages for Python.
Basic Info
Statistics
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 4
- Releases: 0
Topics
libsvm
machine-learning
python
regression
svm-classifier
Created over 6 years ago
· Last pushed over 1 year ago
Metadata Files
Readme
README.rst
.. -*- 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
Owner
- Name: Ricardo Ocampo
- Login: ocampor
- Kind: user
- Location: London, United Kingdom
- Website: https://ocampor.com
- Twitter: ocampo_vr
- Repositories: 16
- Profile: https://github.com/ocampor
GitHub Events
Total
Last Year
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Ricardo Ocampo | r****a@g****m | 11 |
| Ricardo Ocampo | me@o****i | 7 |
Committer Domains (Top 20 + Academic)
ocampor.ai: 1
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 5
- Total pull requests: 5
- Average time to close issues: 6 months
- Average time to close pull requests: 10 minutes
- Total issue authors: 5
- Total pull request authors: 3
- Average comments per issue: 1.4
- Average comments per pull request: 0.0
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- zkonge (1)
- fischeru (1)
- naetherm (1)
- ckastner (1)
- ocampor (1)
Pull Request Authors
- ocampor (3)
- rehanguha (2)
- forestrywhale (2)
Top Labels
Issue Labels
enhancement (1)
Pull Request Labels
Packages
- Total packages: 2
-
Total downloads:
- pypi 5,630 last-month
- Total docker downloads: 98
-
Total dependent packages: 7
(may contain duplicates) -
Total dependent repositories: 48
(may contain duplicates) - Total versions: 7
- Total maintainers: 1
pypi.org: libsvm
Pre-built LibSVM packages for Python.
- Homepage: https://github.com/ocampor/libsvm
- Documentation: https://libsvm.readthedocs.io/
- License: Apache 2.0
-
Latest release: 3.23.0
published over 6 years ago
Rankings
Dependent packages count: 1.6%
Dependent repos count: 2.1%
Downloads: 3.1%
Docker downloads count: 3.2%
Average: 9.3%
Forks count: 22.6%
Stargazers count: 23.1%
Maintainers (1)
Last synced:
6 months ago
conda-forge.org: libsvm-python
- Homepage: https://github.com/ocampor/libsvm
- License: BSD-3-Clause
-
Latest release: 3.23.0.4
published over 3 years ago
Rankings
Dependent packages count: 28.8%
Dependent repos count: 34.0%
Average: 43.2%
Forks count: 54.2%
Stargazers count: 55.7%
Last synced:
6 months ago
Dependencies
docker/Dockerfile
docker
- python 3.5-slim build
docker-compose.yml
docker
- ocampor/libsvm latest
setup.py
pypi