LIBTwinSVM: A Library for Twin Support Vector Machines.
Project description
LIBTwinSVM
Contents
Core Features
LIBTwinSVM is an easy-to-use implementation of Twin Support Vector Machine. It is licensed under the terms of GNU GPL v3. This application comes with a user interface which makes using the algorithm so handy for Data Scientists, Machine Learning Researchers and whoever else that is interested in Machine Learning.
- A simple and user-friendly Graphical User Interface (GUI).
- Supports both standard TwinSVM and Least Squares TwinSVM classifiers.
- Easy to import data in CSV & LIBSVM format.
- A dataset can be loaded with shuffling and normalization.
- A fast optimizer (clipDCD) is improved and implemented in C++ to solve optimization problems of TwinSVMs.
- Supports Linear, RBF and Rectangular kernel.
- Supports Binary and Multi-class classification (One-vs-All & One-vs-One).
- The OVA and OVO estimators are compatible with scikit-learn tools such as GridSearchCV, cross_val_score, etc.
- A classifier can be evaluated using either K-fold cross-validation or Training/Test split.
- Supports grid search over estimators' hyper-parameters.
- The detailed classification results can be saved in an Excel-format spreadsheet file.
- The classification results can be logged during the grid search process to not lose results in case of power failure.
- A feature-rich visualization tool to show decision boundaries and geometrical interpretation of TwinSVMs.
- The best-fitted classifier can be saved on the disk after the grid search process.
- The pre-trained models can be loaded and evaluated on the test samples.
Installation Guide
Dependencies
LIBTwinSVM depends on the following packages.
Package | Description | License |
---|---|---|
Cython | To use C++ code in Python. | Apache License 2.0 |
NumPy | Fast linear algebra operations. | BSD 3-Clause |
Matplotlib | Visualization and geometrical representation of classifiers. | Matplotlib License |
PyQt5 | To create a GUI for using the LIBTwinSVM's features. | GPL |
Scikit-learn | For TwinSVM-based models evaluation and selection. | BSD 3-Clause |
Pandas | For reading and processing datasets. | BSD 3-Clause |
XlsxWriter | For saving classification results in an Excel file. | BSD 3-Clause |
Joblib | For saving and loading TwinSVM-based models. | BSD 3-Clause |
numpydoc | API code documentation. | BSD License |
Quick Installation
For Installing LIBTwinSVM you can choose one of the following commands based on your Operating System and your Python version. Please note that for installing the latest bugfixes and features, we recommend you to install the library from the source.
- Linux & Mac OS:
pip3 install libtwinsvm
- Windows:
pip install libtwinsvm
Installation from the source
1. Downloading LIBTWinSVM
First, make sure that Git is installed as it is required for getting the source code. Then open Git in any arbitrary path and enter the following command:
git clone --recursive https://github.com/mir-am/LIBTwinSVM
2. Downloading Requirements
Before installing any packages, we recommend you to upgrade pip:
- Linux & Mac OS:
pip3 install -U pip
- Windows:
pip install -U pip
For LIBTwinSVM installation, Numpy and Cython must be installed. You can install them by entering the following commands in your terminal. If you already have Cython and Numpy installed, you can skip to the next section.
- Linux & Mac OS: For installing Numpy & Cython on your computer, you should enter the following command in the terminal.
pip3 install numpy cython
- Windows: for installing the requirements on windows, you should enter the following command in the command prompt.
pip install numpy cython
3. Installing LIBTwinSVM
Go to LIBTwinSVM folder where you have downloaded the source code in step 2. Then enter the following command in the terminal:
- Linux & Mac OS:
pip3 install .
- Windows:
pip install .
Quick start
After LIBTwinSVM was installed, for running the GUI application, open the terminal and enter the following code:
- Linux & Mac OS:
python3 -m libtsvm
- Windows:
python -m libtsvm
## Uninstall LIBTwinSVM
For uninstalling LIBTwinSVM enter the following command in the terminal:
* Linux & Mac OS:
```python
pip3 uninstall libtsvm
- Windows:
pip uninstall libtsvm
Documentation
Usage examples and API reference can be found on the project's Read the Docs page.
License
LIBTwinSVM library is licensed under the terms of GNU General Public License v3. This library can be used for both academic and commercial purposes. For more information, check out the LICENSE file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for LIBTwinSVM-0.1.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c652aad96752681449fe065a2e617077c1bd318ed9c6f411a024f787bd970b2 |
|
MD5 | c35c3e7304dfb5a22145fb70cee6823f |
|
BLAKE2b-256 | 0bb4208f58a7e44751b93e0e3db45fa19549e47d5a7a7bad9f5e86dce854e309 |
Hashes for LIBTwinSVM-0.1.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa5d6500cbc7345115744a19c9217ae15a8a7ba265f2ccbc24e5e97c121713bc |
|
MD5 | d2950c64273c4e6a94a8d11037569552 |
|
BLAKE2b-256 | 6d24d21b99a4664742af6670063c37e60503647af0a3e00da3699d19dbb6f07f |
Hashes for LIBTwinSVM-0.1.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ade1252cec0fe7ec254ebed5d1ee4b098ba14c452ce907ae42f3496a7470751 |
|
MD5 | 7d2820b44672f3915e59a130753e31c9 |
|
BLAKE2b-256 | b154118a025c76f445f561ba016ed99a39a062825b31d0f8bea9f7edc8b5b26d |
Hashes for LIBTwinSVM-0.1.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fedd78b6607d29394a28ee90aef78a7254456911970a7371ace5201200836f58 |
|
MD5 | 67cf96e732a7a81d8912d53655f3527b |
|
BLAKE2b-256 | f2ec411d90af55a23d292d565892c49db5ff41ae46ec9e1b7c5904e436c469bd |
Hashes for LIBTwinSVM-0.1.0-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e894176f2b597205e398beb3703c9ee00ea80e33abe3e7b80e36080a742a432 |
|
MD5 | 6a7031f60ce92cb1e32cc4449afaf806 |
|
BLAKE2b-256 | fe7c482d2eea74dce2e1ee7b445d6526318559b8efbfb0a6840861aa17c84f08 |
Hashes for LIBTwinSVM-0.1.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2aa9edc89dd55b6cad32bf07910adf2b9e0284c682eff0a13087b8f4d4a80686 |
|
MD5 | 6a8f2c736343555b38c4e5917ef89f1d |
|
BLAKE2b-256 | 327de36a90b7e4aa25889cc3f347b24754eb03c848734aabbfaaa5929cf29732 |